qase-javascript-commons 2.0.3 → 2.0.5
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 +13 -0
- package/dist/reporters/testops-reporter.js +4 -3
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# qase-javascript-commons@2.0.5
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
Improved logging for better debugging and error reporting.
|
|
6
|
+
|
|
7
|
+
# qase-javascript-commons@2.0.4
|
|
8
|
+
|
|
9
|
+
## What's new
|
|
10
|
+
|
|
11
|
+
Fixed an issue when the reporter created a test run:
|
|
12
|
+
`The start time does not match the format Y-m-d H:i:s.`
|
|
13
|
+
|
|
1
14
|
# qase-javascript-commons@2.0.3
|
|
2
15
|
|
|
3
16
|
## What's new
|
|
@@ -361,9 +361,9 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
361
361
|
const year = date.getUTCFullYear();
|
|
362
362
|
const month = ('0' + (date.getUTCMonth() + 1).toString()).slice(-2); // Months are zero indexed, so we add 1
|
|
363
363
|
const day = ('0' + date.getUTCDate().toString()).slice(-2);
|
|
364
|
-
const hours = date.getUTCHours().toString();
|
|
365
|
-
const minutes = date.getUTCMinutes().toString();
|
|
366
|
-
const seconds = date.getUTCSeconds().toString();
|
|
364
|
+
const hours = ('0' + date.getUTCHours().toString()).slice(-2);
|
|
365
|
+
const minutes = ('0' + date.getUTCMinutes().toString()).slice(-2);
|
|
366
|
+
const seconds = ('0' + date.getUTCSeconds().toString()).slice(-2);
|
|
367
367
|
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
368
368
|
}
|
|
369
369
|
/**
|
|
@@ -376,6 +376,7 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
376
376
|
}
|
|
377
377
|
const acc = [];
|
|
378
378
|
for (const attachment of attachments) {
|
|
379
|
+
this.logger.logDebug(`Uploading attachment: ${attachment.file_path ?? attachment.file_name}`);
|
|
379
380
|
try {
|
|
380
381
|
let data;
|
|
381
382
|
if (attachment.file_path) {
|