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

Save test run ID and URL to be reused in CI #591

Open
NickVolynkin opened this issue May 22, 2024 · 0 comments
Open

Save test run ID and URL to be reused in CI #591

NickVolynkin opened this issue May 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@NickVolynkin
Copy link
Contributor

NickVolynkin commented May 22, 2024

Test reporters create a Qase test run before reporting the tests. Subsequent CI steps might need the information about the run for many reasons:

  • To report more tests to the same test run.
  • To put the test run URL to the workflow description, PR comments, or wherever else.
  • To query the API for some data from the test

Implementation

There can be several options to return the values:

Write variables to a file

qase.sh

QASE_TESTOPS_RUN_ID=42
QASE_TESTOPS_RUN_URL=https://app.qase.io/run/DEMO/dashboard/42

There can be a problem if such file already exists and is open for writing (that is, busy).
It can probably happen with multithreaded test runs.

Set environment variables

Same as with file, but directly set up env variables.
There's a risk of overwriting the value that was already set.
However, if it was set before running the tests, the reporter should have read and used it.

Write values to stdout in a well-parseable format

@NickVolynkin NickVolynkin added the enhancement New feature or request label May 22, 2024
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

1 participant