gurock / trcli

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

Add add_run command #240

Open jakec-routable opened 1 week ago

jakec-routable commented 1 week ago

Issue being resolved: https://github.com/gurock/trcli/issues/236

Solution description

How are we solving the problem? Adding the add_run command exposes the API's add_run route to trcli users. This command can be used to create the target test run prior to uploading results - a required step when uploading results that are generated in CI/CD environments that use parallel execution nodes, such as circleCi.

The command follows the same usage pattern as trcli's other commands. The output of the command is the test run id, which is sent to STDOUT and optionally to a yaml file that can be used as a config for parse_*** command that may be executed next.

Changes

What changes where made?

Potential impacts

What could potentially be affected by the implemented changes?

The implemented changes should have no impact on existing usage. These changes do not alter the current behavior of the application.

Steps to test

Happy path to test implemented scenario:

PR Tasks

jakec-routable commented 2 days ago

Hello @bitcoder, could this PR get a review, please 🙏🏼 ?