Skip to content

test(mr): Add MR related tests

Jay McCure requested to merge jmc-add-mr-tests into main

Description

Adding a happy path test to the following commands as they are currently not covered. Each test follows the same pattern, like the existing tests. These tests stub the http endpoints that the cli requests. If a stubbed endpoint is not used or if the cli calls an endpoint that is not stubbed the tests will fail.

  • glab mr approve <mr_id>
  • glab mr approvers <mr_id>
  • glab mr close <mr_id>
  • glab mr merge <mr_id>

How has this been tested?

GITLAB_TOKEN=foo NO_COLOR=true make test

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Jay McCure

Merge request reports