Skip to content

Test(git-browse-ci): add unit tests #1128

@vanpipy

Description

@vanpipy

File

git-browse-ci

git browse-ci is that the command browses the repository of the CI page which comes from gitlab, github or bitbucket.

Testcases

  1. If the repository comes from gitlab, open a url like https://gitlab.com/<user_or_group>/<repo>/-/pipelines
  2. If the repository comes from github, open a url like https://github.com/<user_or_org>/<repo>/actions
  3. If the repository comes from bitbucket, open a url like https://bitbucket.org/<user_or_org>/<repo>/addon/pipelines/home
  4. If the OS is mac, open via command open
  5. If the OS is Git-Bash on windows, open via command start
  6. If the OS is WSL on windows, open via commnd start
  7. If the OS is linux, open via command xdg-open
  8. If the OS is unknown, open via command xdg-open

PS: it is simalir with git-browse but for different purposes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions