gurock / trcli

TR CLI (trcli) is a command line tool for interacting with TestRail.
Mozilla Public License 2.0
47 stars 42 forks source link

Output machine readable details of the upload #94

Open brentahughes opened 2 years ago

brentahughes commented 2 years ago

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

When using this tool as part of a CI pipeline it would be nice to have some output like JSON with all the ids created or used so they can be used by futures steps in the ci. Currently it requires additional api calls after the run to get the information.

IE:

trcli --output=json ...

{
  "suite_id": 202,
  "run_id": 24,
  "sections_added": 1, 
  "cases_added": 445,
  "runs_added": 823
}

Why is this feature necessary on the TestRail CLI?

The testrail API has some low limits, if we already have the id's as a result of the upload then it can be provided to stdout.

More details

No response

Interested in implementing it yourself?

Maybe, let's talk!