-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unify run_id header in outputs. #109
Conversation
howdy @tomalec, thanks for the feedback. I agree we could normalize However, any programmatic integration you do based on the output should ideally be done with the You can use
|
Thanks for the hint. I'd definitely do that; the problem is I think that's another area for improvement, but it's a bit more complicated for me to do that this PR ;) |
Got it, I'll make it return the async response in that case. PR should be up by EOD. |
@tomalec Can you please pull this branch and see if that solves your use-case? You can try the development build in this branch with either option:
|
Awesome, thanks! Yes, it does solve my use case |
Now Starting a test run:Getting a test run:Getting a test run JSON (Property
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me and I was able to kick off test runs from the CLI as expected.
Thank you for taking over the PR and pushing it so much further! |
Use changes added in woocommerce/qit-cli#109 Add `ignore_fail` parameter, to simplify continue-on-error behavior. Drop the report file, use annotations only. Hide result URLs, expose `test_run_id` for further checks.
Unify header used for run id in
--wait
and regular mode.So it's easier to interpret the results.
Before
Currently, a call with
--wait
returns, but calling it without calls is the same thing as "Test ID".After
Both return
Alternatives to consider.
qit get
call it even more verbosely "test run id", so maybe we should stick to that.Context
I'm trying to add a bit more GHactions-based automation to interpret the output and pass it to the following actions and workflows.
Having only one format to parse would make it a bit easier.
Also, it would be nice if I could call it w/o
--wait
but with--json
and get the test run ID value.