Skip to content

Commit

Permalink
Merge pull request #195 from reportportal/develop
Browse files Browse the repository at this point in the history
Release 5.3.1
  • Loading branch information
AmsterGet authored Jun 24, 2024
2 parents e7d8756 + 5bb8563 commit 4e97483
Show file tree
Hide file tree
Showing 9 changed files with 1,700 additions and 1,472 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @AmsterGet @AliakseiLiasnitski
* @AmsterGet
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Fixed
- [#192](https://github.com/reportportal/agent-js-cypress/issues/192). Reporter procreates an enormous amount of processes during execution. Thanks to [epam-avramenko](https://github.com/epam-avramenko).
### Changed
- `@reportportal/client-javascript` bumped to version `5.1.4`.

## [5.3.0] - 2024-05-07
### Added
Expand Down
173 changes: 86 additions & 87 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.0
5.3.1-SNAPSHOT
3 changes: 0 additions & 3 deletions lib/cypressReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ class CypressReporter extends Mocha.reporters.Base {
});

this.runner.on(EVENT_RUN_END, () => {
if (CypressReporter.reporterOptions.launchId) {
return;
}
CypressReporter.calcTotalLaunches();
if (CypressReporter.shouldStopLaunch()) {
this.worker.send({ event: EVENT_RUN_END, launch: getLaunchStartObject(config) });
Expand Down
25 changes: 14 additions & 11 deletions lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,20 @@ class Reporter {
}

runEnd() {
const finishLaunchPromise = this.client
.finishLaunch(
this.tempLaunchId,
Object.assign(
{
endTime: new Date().valueOf(),
},
this.launchStatus && { status: this.launchStatus },
),
)
.promise.then(() => {
const basePromise = this.config.reporterOptions.launchId
? this.client.getPromiseFinishAllItems(this.tempLaunchId)
: this.client.finishLaunch(
this.tempLaunchId,
Object.assign(
{
endTime: new Date().valueOf(),
},
this.launchStatus && { status: this.launchStatus },
),
).promise;

const finishLaunchPromise = basePromise
.then(() => {
const { launch, isLaunchMergeRequired } = this.config.reporterOptions;
if (isLaunchMergeRequired) {
deleteMergeLaunchLockFile(launch, this.tempLaunchId);
Expand Down
Loading

0 comments on commit 4e97483

Please sign in to comment.