qase-javascript-commons 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +12 -0
- package/dist/reporters/testops-reporter.js +3 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# qase-javascript-commons@2.0.6
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
Fixed an issue with a race condition when the reporter added test results to the test run.
|
|
6
|
+
|
|
7
|
+
# qase-javascript-commons@2.0.5
|
|
8
|
+
|
|
9
|
+
## What's new
|
|
10
|
+
|
|
11
|
+
Improved logging for better debugging and error reporting.
|
|
12
|
+
|
|
1
13
|
# qase-javascript-commons@2.0.4
|
|
2
14
|
|
|
3
15
|
## What's new
|
|
@@ -63,8 +63,9 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
63
63
|
}
|
|
64
64
|
const countOfResults = this.batchSize + this.firstIndex;
|
|
65
65
|
if (this.results.length >= countOfResults) {
|
|
66
|
-
|
|
66
|
+
const firstIndex = this.firstIndex;
|
|
67
67
|
this.firstIndex = countOfResults;
|
|
68
|
+
await this.publishResults(this.results.slice(firstIndex, countOfResults));
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
@@ -376,6 +377,7 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
376
377
|
}
|
|
377
378
|
const acc = [];
|
|
378
379
|
for (const attachment of attachments) {
|
|
380
|
+
this.logger.logDebug(`Uploading attachment: ${attachment.file_path ?? attachment.file_name}`);
|
|
379
381
|
try {
|
|
380
382
|
let data;
|
|
381
383
|
if (attachment.file_path) {
|