Skip to content

Commit

Permalink
qase-javascript-commons: fixing a problem with duplicate test runs in…
Browse files Browse the repository at this point in the history
… Cypress

Store the test run ID in the ENV variable `QASE_TESTOPS_RUN_ID` after creating a test run.
  • Loading branch information
gibiw authored and NickVolynkin committed Apr 29, 2024
1 parent 4be3687 commit c2adc88
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions qase-javascript-commons/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [email protected]

## What's new

Fixed an issue with duplicate test runs if the testing framework (such as Cypress) uses more than one instance of the Qase reporter.
The Qase reporter stores the test run ID in the ENV variable `QASE_TESTOPS_RUN_ID` after creating the first test run.

# [email protected]

## What's new
Expand Down
2 changes: 1 addition & 1 deletion qase-javascript-commons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qase-javascript-commons",
"version": "2.0.0-beta.8",
"version": "2.0.0-beta.9",
"description": "Qase JS Reporters",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions qase-javascript-commons/src/reporters/testops-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ export class TestOpsReporter extends AbstractReporter {
}

this.run.id = result.id;
process.env['QASE_TESTOPS_RUN_ID'] = String(result.id);
this.isTestRunReady = true;
}

Expand Down

0 comments on commit c2adc88

Please sign in to comment.