@testomatio/reporter 1.1.0-rc.2 → 1.1.0
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/README.md +1 -4
- package/lib/client.js +3 -10
- package/lib/fileUploader.js +4 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,16 +65,13 @@ yarn add @testomatio/reporter --dev
|
|
|
65
65
|
|
|
66
66
|
### 1️⃣ Attach Reporter to the Test Runner
|
|
67
67
|
|
|
68
|
-
| | | |
|
|
69
|
-
|--|--|--|
|
|
70
68
|
| [Playwright](./docs/frameworks.md#playwright) | [CodeceptJS](./docs/frameworks.md#CodeceptJS) | [Cypress](./docs/frameworks.md#Cypress) |
|
|
71
69
|
| [Jest](./docs/frameworks.md#Jest) | [Mocha](./docs/frameworks.md#Mocha) | [WebDriverIO](./docs/frameworks.md#WebDriverIO) |
|
|
72
70
|
| [TestCafe](./docs/frameworks.md#TestCafe) | [Detox](./docs/frameworks.md#Detox) | [Codeception](https://github.com/testomatio/php-reporter) |
|
|
73
71
|
| [Newman (Postman)](./docs/frameworks.md#Newman) | [JUnit](./docs/junit.md#junit) | [NUnit](./docs/junit.md#nunit) |
|
|
74
72
|
| [PyTest](./docs/junit.md#pytest) | [PHPUnit](./docs/junit.md#phpunit) | [Protractor](./docs/frameworks.md#protractor) |
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
or **any [other via JUnit](./docs/junit.md)** report....
|
|
74
|
+
or any [other via JUnit](./docs/junit.md) report....
|
|
78
75
|
|
|
79
76
|
### 2️⃣ Configure Reports
|
|
80
77
|
|
package/lib/client.js
CHANGED
|
@@ -163,16 +163,9 @@ class Client {
|
|
|
163
163
|
uploadedFiles.push(upload.uploadFileAsBuffer(buffer, fileName, this.uuid));
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
const artifacts =
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
console.log(
|
|
170
|
-
APP_PREFIX,
|
|
171
|
-
chalk.yellow(
|
|
172
|
-
`Some artifacts were not uploaded. ${artifacts.length}/${uploadedFiles.length} artifacts uploaded.`,
|
|
173
|
-
),
|
|
174
|
-
);
|
|
175
|
-
}
|
|
166
|
+
const artifacts = await Promise.all(uploadedFiles);
|
|
167
|
+
|
|
168
|
+
// global.testomatioArtifacts = [];
|
|
176
169
|
|
|
177
170
|
this.totalUploaded += uploadedFiles.filter(n => n).length;
|
|
178
171
|
|
package/lib/fileUploader.js
CHANGED
|
@@ -146,13 +146,8 @@ const uploadUsingS3 = async (filePath, runId) => {
|
|
|
146
146
|
params
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
debug(`Succesfully uploaded ${filePath} => ${S3_BUCKET}/${Key} | URL: ${link}`);
|
|
153
|
-
|
|
154
|
-
return link;
|
|
155
|
-
}
|
|
149
|
+
return await getS3LocationLink(out);
|
|
150
|
+
}
|
|
156
151
|
catch (e) {
|
|
157
152
|
debug('S3 file uploading error: ', e);
|
|
158
153
|
|
|
@@ -284,6 +279,8 @@ const getS3LocationLink = async (out) => {
|
|
|
284
279
|
|
|
285
280
|
let s3Location = response?.Location;
|
|
286
281
|
|
|
282
|
+
debug('Uploaded response.Location', s3Location);
|
|
283
|
+
|
|
287
284
|
if (!s3Location) {
|
|
288
285
|
// TODO: out: a fallback case - remove after deeper testing
|
|
289
286
|
s3Location = out?.singleUploadResult?.Location;
|