Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands to close a test run created with add_run #282

Open
cgeisel opened this issue Jan 3, 2025 · 1 comment
Open

Add commands to close a test run created with add_run #282

cgeisel opened this issue Jan 3, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@cgeisel
Copy link

cgeisel commented Jan 3, 2025

What would you like the TestRail CLI to be able to do?

I'd like to be able to create a run using the add_run command recently added by #236 and then use a similar command to close the run with similar syntax, with the option to use the yaml file produced by add_run.

Why is this feature necessary on the TestRail CLI?

I'm using parse_junit in my CI pipeline to upload multiple JUnit reports and preceding this automation with an add_run command to create a run for all of them to use. At the moment my automation has fairly brittle logic that loops through a list of reports and when it detects the last report, runs parse_junit with the --close-run flag to close the run. The problem with this approach is that if the parse_junit command fails for any reason, the run is left open, which is not ideal for our internal process.

More details

Here's the type of logic I'd like to support:

  1. trcli add_run...
  2. loop through list of junit reports and trcli parse_junit using a config.yml produced by add_run
  3. handle errors
  4. trcli close_run...

Interested in implementing it yourself?

Yes

@cgeisel cgeisel added the enhancement New feature or request label Jan 3, 2025
@jakec-routable
Copy link
Contributor

jakec-routable commented Jan 6, 2025

I implemented something like this in Routable's fork. Let me know if you just want me to make a PR from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants