@testomatio/reporter 1.0.6-beta.1 → 1.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/lib/pipe/testomatio.js +8 -0
- package/package.json +1 -1
- package/Changelog.md +0 -277
package/lib/pipe/testomatio.js
CHANGED
|
@@ -57,6 +57,7 @@ class TestomatioPipe {
|
|
|
57
57
|
|
|
58
58
|
// GitHub Actions Url
|
|
59
59
|
if (!buildUrl && process.env.GITHUB_RUN_ID) {
|
|
60
|
+
// eslint-disable-next-line max-len
|
|
60
61
|
buildUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`
|
|
61
62
|
}
|
|
62
63
|
|
|
@@ -68,6 +69,8 @@ class TestomatioPipe {
|
|
|
68
69
|
buildUrl = `${collectionUri}/${project}/_build/results?buildId=${buildId}`;
|
|
69
70
|
}
|
|
70
71
|
|
|
72
|
+
if (!buildUrl.startsWith('http')) buildUrl = undefined;
|
|
73
|
+
|
|
71
74
|
const runParams = Object.fromEntries(
|
|
72
75
|
Object.entries({
|
|
73
76
|
ci_build_url: buildUrl,
|
|
@@ -140,6 +143,7 @@ class TestomatioPipe {
|
|
|
140
143
|
}
|
|
141
144
|
return;
|
|
142
145
|
}
|
|
146
|
+
// eslint-disable-next-line max-len
|
|
143
147
|
console.log(APP_PREFIX, chalk.blue(data?.title || ''), `Report couldn't be processed: ${err.response.data.message}`);
|
|
144
148
|
} else {
|
|
145
149
|
console.log(APP_PREFIX, chalk.blue(data?.title || ''), "Report couldn't be processed", err);
|
|
@@ -181,13 +185,17 @@ class TestomatioPipe {
|
|
|
181
185
|
}
|
|
182
186
|
if (this.hasUnmatchedTests) {
|
|
183
187
|
console.log('');
|
|
188
|
+
// eslint-disable-next-line max-len
|
|
184
189
|
console.log(APP_PREFIX, chalk.yellow.bold('⚠️ Some reported tests were not found in Testomat.io project'));
|
|
190
|
+
// eslint-disable-next-line max-len
|
|
185
191
|
console.log(APP_PREFIX, `If you use Testomat.io as a reporter only, please re-run tests using ${chalk.bold('TESTOMATIO_CREATE=1')}`);
|
|
192
|
+
// eslint-disable-next-line max-len
|
|
186
193
|
console.log(APP_PREFIX, `But to keep your tests consistent it is recommended to ${chalk.bold('import tests first')}`);
|
|
187
194
|
console.log(APP_PREFIX, 'If tests were imported but still not matched, assign test IDs to your tests.');
|
|
188
195
|
console.log(APP_PREFIX, 'You can do that automatically via command line tools:');
|
|
189
196
|
console.log(APP_PREFIX, chalk.bold('npx check-tests ... --update-ids'), 'See: https://bit.ly/js-update-ids');
|
|
190
197
|
console.log(APP_PREFIX, 'or for Cucumber:');
|
|
198
|
+
// eslint-disable-next-line max-len
|
|
191
199
|
console.log(APP_PREFIX, chalk.bold('npx check-cucumber ... --update-ids'), 'See: https://bit.ly/bdd-update-ids');
|
|
192
200
|
}
|
|
193
201
|
} catch (err) {
|
package/package.json
CHANGED
package/Changelog.md
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
<!-- pending release updates -->
|
|
2
|
-
|
|
3
|
-
# 1.0.5
|
|
4
|
-
|
|
5
|
-
* Fix "create tests" params processing for testomatio pipe
|
|
6
|
-
|
|
7
|
-
# 1.0.4
|
|
8
|
-
|
|
9
|
-
* Fixed parallel run
|
|
10
|
-
|
|
11
|
-
# 1.0.3
|
|
12
|
-
|
|
13
|
-
* Fixed reporting parallel runs
|
|
14
|
-
|
|
15
|
-
# 1.0.0
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* Added [`TESTOMATIO_SHARED_RUN` option](https://github.com/testomatio/reporter/blob/master/docs/pipes.md#reporting-parallel-execution-to-to-same-run) to use a shared run for parallel executions
|
|
19
|
-
* Reworked [documentation](https://github.com/testomatio/reporter/tree/master#readme).
|
|
20
|
-
* Added an option to obtain [S3 configuration](https://github.com/testomatio/reporter/blob/master/docs/artifacts.md#configuration) from Testomat.io
|
|
21
|
-
* Introduced [pipes](https://github.com/testomatio/reporter/blob/master/docs/pipes.md):
|
|
22
|
-
* GitHub
|
|
23
|
-
* GitLab
|
|
24
|
-
* CSV Pipe
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# 0.7.6
|
|
28
|
-
|
|
29
|
-
* Updated to use AWS S3 3.0 SDK for uploading
|
|
30
|
-
|
|
31
|
-
# 0.7.5
|
|
32
|
-
|
|
33
|
-
* Fixed reporting skipped tests in mocha
|
|
34
|
-
|
|
35
|
-
# 0.7.4
|
|
36
|
-
|
|
37
|
-
* Fixed parsing source code in JUnit files
|
|
38
|
-
|
|
39
|
-
# 0.7.3
|
|
40
|
-
|
|
41
|
-
* CodeceptJS: Upload all traces and videos from artifacts
|
|
42
|
-
* Fixed reporting skipped test in XML
|
|
43
|
-
* added `--timelimit` option to `report-xml` command line
|
|
44
|
-
|
|
45
|
-
# 0.7.2
|
|
46
|
-
|
|
47
|
-
* Fixed uploading non-existing file
|
|
48
|
-
|
|
49
|
-
# 0.7.1
|
|
50
|
-
|
|
51
|
-
* Support for NUnit XML v3 format
|
|
52
|
-
|
|
53
|
-
# 0.7.0
|
|
54
|
-
|
|
55
|
-
* Support for `@cucumber/cucumber` (>= 7.0) added
|
|
56
|
-
* Initial support for C# and NUnit
|
|
57
|
-
|
|
58
|
-
# 0.6.10
|
|
59
|
-
|
|
60
|
-
* Fixed uploading multilpe artifacts in Playwright
|
|
61
|
-
|
|
62
|
-
# 0.6.9
|
|
63
|
-
|
|
64
|
-
* Fixed pending tests reports for Cypress
|
|
65
|
-
|
|
66
|
-
# 0.6.8
|
|
67
|
-
# 0.6.7
|
|
68
|
-
|
|
69
|
-
* Pytest: fixed creating suites from reports
|
|
70
|
-
|
|
71
|
-
# 0.6.6
|
|
72
|
-
|
|
73
|
-
* JUnit reporter: prefer suite title over testcase classname in a report
|
|
74
|
-
|
|
75
|
-
# 0.6.5
|
|
76
|
-
|
|
77
|
-
* Fixed test statuses for runs in JUnit reporter
|
|
78
|
-
|
|
79
|
-
# 0.6.4
|
|
80
|
-
|
|
81
|
-
* Added `TESTOMATIO_PROCEED=1` param to not close current run
|
|
82
|
-
* Fixed priority of commands from `npx @testomatio/reporter`
|
|
83
|
-
|
|
84
|
-
# 0.6.3
|
|
85
|
-
|
|
86
|
-
* Fixed `npx start-test-run` to launch commands
|
|
87
|
-
|
|
88
|
-
# 0.6.2
|
|
89
|
-
|
|
90
|
-
* Added `--env-file` option to load env variables from env file
|
|
91
|
-
|
|
92
|
-
# 0.6.1
|
|
93
|
-
|
|
94
|
-
* Fixed creating RunGroup with JUnit reporter
|
|
95
|
-
|
|
96
|
-
# 0.6.0
|
|
97
|
-
|
|
98
|
-
* JUnit reporter support
|
|
99
|
-
|
|
100
|
-
# 0.5.10
|
|
101
|
-
|
|
102
|
-
* Fixed reporting Scenario Outline in Cypress-Cucumber
|
|
103
|
-
* Fixed error reports for Cypress when running in Chrome
|
|
104
|
-
|
|
105
|
-
# 0.5.9
|
|
106
|
-
|
|
107
|
-
* Added environment on Cypress report
|
|
108
|
-
|
|
109
|
-
# 0.5.8
|
|
110
|
-
|
|
111
|
-
* Fixed Cypress.io reporting
|
|
112
|
-
|
|
113
|
-
# 0.5.7
|
|
114
|
-
|
|
115
|
-
* Fixed webdriverio artifacts
|
|
116
|
-
|
|
117
|
-
# 0.5.6
|
|
118
|
-
|
|
119
|
-
* Unmark failed CodeceptJS tests as skipped
|
|
120
|
-
|
|
121
|
-
# 0.5.5
|
|
122
|
-
|
|
123
|
-
* Fixed `BeforeSuite` failures in CodeceptJS
|
|
124
|
-
|
|
125
|
-
# 0.5.4
|
|
126
|
-
|
|
127
|
-
Added `TESTOMATIO_CREATE=1` option to create unmatched tests on report
|
|
128
|
-
|
|
129
|
-
```
|
|
130
|
-
TESTOMATIO_CREATE=1 TESTOMATIO=apiKey npx codeceptjs run
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
# 0.5.3
|
|
134
|
-
|
|
135
|
-
* Fixed parsing suites
|
|
136
|
-
|
|
137
|
-
# 0.5.2
|
|
138
|
-
|
|
139
|
-
* Fixed multiple upload of artifacts in Cypress.io
|
|
140
|
-
|
|
141
|
-
# 0.5.1
|
|
142
|
-
|
|
143
|
-
* Fixed Cypress.io to report tests inside nested suites
|
|
144
|
-
|
|
145
|
-
# 0.5.0
|
|
146
|
-
|
|
147
|
-
* Added Cypress.io plugin
|
|
148
|
-
* Added artifacts upload to webdriverio
|
|
149
|
-
|
|
150
|
-
# 0.4.6
|
|
151
|
-
|
|
152
|
-
- Fixed CodeceptJS reporter to report tests failed in hooks
|
|
153
|
-
|
|
154
|
-
# 0.4.5
|
|
155
|
-
|
|
156
|
-
- Fixed "Total XX artifacts publicly uploaded to S3 bucket" when no S3 bucket is configured
|
|
157
|
-
- Improved S3 connection error messages
|
|
158
|
-
|
|
159
|
-
# 0.4.4
|
|
160
|
-
|
|
161
|
-
- Fixed returning 0 exit code when a process fails when running tests in parallel via `start-test-run`. Previously was using the last exit code returned by a process. Currently prefers the highest exit code that was returned by a process.
|
|
162
|
-
|
|
163
|
-
# 0.4.3
|
|
164
|
-
|
|
165
|
-
- Added `TESTOMATIO_DISABLE_ARTIFACTS` env variable to disable publishing artifacts.
|
|
166
|
-
|
|
167
|
-
# 0.4.2
|
|
168
|
-
|
|
169
|
-
- print version of reporter
|
|
170
|
-
- print number of uploaded artifacts
|
|
171
|
-
- print access mode for uploaded artifacts
|
|
172
|
-
|
|
173
|
-
# 0.4.1
|
|
174
|
-
|
|
175
|
-
Added `global.testomatioArtifacts = []` array which can be used to add arbitrary artifacts to a report.
|
|
176
|
-
|
|
177
|
-
```js
|
|
178
|
-
// inside a running test:
|
|
179
|
-
global.testomatioArtifacts.push('file/to/upload.png');
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
# 0.4.0
|
|
183
|
-
|
|
184
|
-
- Playwright: Introduced playwright/test support with screenshots and video artifacts
|
|
185
|
-
|
|
186
|
-
> Known issues: reporting using projects configured in Playwright does not work yet
|
|
187
|
-
|
|
188
|
-
- CodeceptJS: added video uploads
|
|
189
|
-
|
|
190
|
-
# 0.3.16
|
|
191
|
-
|
|
192
|
-
- CodeceptJS: fixed reporting tests with empty steps (on retry)
|
|
193
|
-
|
|
194
|
-
# 0.3.15
|
|
195
|
-
|
|
196
|
-
- Finish Run via API:
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
TESTOMATIO={apiKey} TESTOMATIO_RUN={runId} npx @testomatio/reporter@latest --finish
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
# 0.3.14
|
|
203
|
-
|
|
204
|
-
- Create an empty Run via API:
|
|
205
|
-
|
|
206
|
-
```
|
|
207
|
-
TESTOMATIO={apiKey} npx @testomatio/reporter@latest --launch
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
# 0.3.13
|
|
211
|
-
|
|
212
|
-
- Checking for a valid report URL
|
|
213
|
-
- Sending unlimited data on test report
|
|
214
|
-
|
|
215
|
-
# 0.3.12
|
|
216
|
-
|
|
217
|
-
- Fixed submitting arbitrary data on a test run
|
|
218
|
-
- Jest: fixed sending errors with stack traces
|
|
219
|
-
- Cypress: fixed sending reports
|
|
220
|
-
|
|
221
|
-
# 0.3.11
|
|
222
|
-
|
|
223
|
-
- Fixed circular JSON reference when submitting data to Testomatio
|
|
224
|
-
|
|
225
|
-
# 0.3.10
|
|
226
|
-
|
|
227
|
-
- Minor fixes
|
|
228
|
-
|
|
229
|
-
# 0.3.9
|
|
230
|
-
|
|
231
|
-
- Making all reporters to run without API key
|
|
232
|
-
|
|
233
|
-
# 0.3.8
|
|
234
|
-
|
|
235
|
-
- Fixed `npx start-test-run` to work with empty API keys
|
|
236
|
-
|
|
237
|
-
# 0.3.7
|
|
238
|
-
|
|
239
|
-
- Fixed release
|
|
240
|
-
|
|
241
|
-
# 0.3.6
|
|
242
|
-
|
|
243
|
-
- Update title and rungroup on start for scheduled runs.
|
|
244
|
-
|
|
245
|
-
# 0.3.5
|
|
246
|
-
|
|
247
|
-
- Added `TESTOMATIO_RUN` environment variable to pass id of a specific run to report
|
|
248
|
-
|
|
249
|
-
# 0.3.4
|
|
250
|
-
|
|
251
|
-
- Minor fixes
|
|
252
|
-
|
|
253
|
-
# 0.3.3
|
|
254
|
-
|
|
255
|
-
- [CodeceptJS] Fixed stack trace reporting
|
|
256
|
-
- [CodeceptJS] Fixed displaying of nested steps
|
|
257
|
-
- [CodeceptJS][mocha] Added assertion diff to report
|
|
258
|
-
|
|
259
|
-
# 0.3.2
|
|
260
|
-
|
|
261
|
-
- Fixed error message for S3 uploading
|
|
262
|
-
|
|
263
|
-
# 0.3.1
|
|
264
|
-
|
|
265
|
-
- [CodeceptJS] Better formatter for nested structures and BDD tests
|
|
266
|
-
|
|
267
|
-
# 0.3.0
|
|
268
|
-
|
|
269
|
-
- Added `TESTOMATIO_TITLE` env variable to set a name for Run
|
|
270
|
-
- Added `TESTOMATIO_RUNGROUP_TITLE` env variable to attach Run to RunGroup
|
|
271
|
-
- Added `TESTOMATIO_ENV` env variable to attach additional env values to report
|
|
272
|
-
- [CodeceptJS] **CodeceptJS v3 support**
|
|
273
|
-
- [CodeceptJS] Dropped support for CodeceptJS 2
|
|
274
|
-
- [CodeceptJS] Added support for before hooks
|
|
275
|
-
- [CodeceptJS] Log of steps
|
|
276
|
-
- [CodeceptJS] Upload screenshots of failed tests to S3
|
|
277
|
-
- [CodeceptJS] Updated to use with parallel execution
|