@testomatio/reporter 1.3.0 → 1.3.1-beta.1-exclude-skipped-tests
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/adapter/codecept.js +5 -5
- package/lib/adapter/cucumber/current.js +2 -2
- package/lib/adapter/cucumber/legacy.js +2 -2
- package/lib/adapter/cypress-plugin/index.js +2 -2
- package/lib/adapter/jasmine.js +2 -2
- package/lib/adapter/jest.js +2 -2
- package/lib/adapter/mocha.js +4 -4
- package/lib/adapter/playwright.js +2 -2
- package/lib/adapter/webdriver.js +47 -2
- package/lib/client.js +5 -1
- package/lib/pipe/csv.js +34 -30
- package/lib/pipe/html.js +17 -10
- package/lib/pipe/testomatio.js +88 -11
- package/lib/template/emptyData.svg +23 -0
- package/lib/template/testomatio.hbs +443 -258
- package/lib/utils/utils.js +3 -3
- package/lib/xmlReader.js +7 -0
- package/package.json +1 -1
package/lib/utils/utils.js
CHANGED
|
@@ -10,13 +10,13 @@ const debug = require('debug')('@testomatio/reporter:util');
|
|
|
10
10
|
*
|
|
11
11
|
* @returns {String|null} testId
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const getTestomatIdFromTestTitle = testTitle => {
|
|
14
14
|
if (!testTitle) return null;
|
|
15
15
|
|
|
16
16
|
const captures = testTitle.match(/@T[\w\d]{8}/);
|
|
17
17
|
|
|
18
18
|
if (captures) {
|
|
19
|
-
return captures[
|
|
19
|
+
return captures[0];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
return null;
|
|
@@ -328,7 +328,7 @@ module.exports = {
|
|
|
328
328
|
specificTestInfo,
|
|
329
329
|
isValidUrl,
|
|
330
330
|
ansiRegExp,
|
|
331
|
-
|
|
331
|
+
getTestomatIdFromTestTitle,
|
|
332
332
|
parseSuite,
|
|
333
333
|
humanize,
|
|
334
334
|
removeColorCodes,
|
package/lib/xmlReader.js
CHANGED
|
@@ -38,6 +38,8 @@ class XmlReader {
|
|
|
38
38
|
title: TESTOMATIO_TITLE,
|
|
39
39
|
env: TESTOMATIO_ENV,
|
|
40
40
|
group_title: TESTOMATIO_RUNGROUP_TITLE,
|
|
41
|
+
// batch uploading is implemented for xml already
|
|
42
|
+
isBatchEnabled: false,
|
|
41
43
|
};
|
|
42
44
|
this.runId = opts.runId || TESTOMATIO_RUN;
|
|
43
45
|
this.adapter = adapterFactory(opts.lang?.toLowerCase(), opts);
|
|
@@ -376,6 +378,7 @@ class XmlReader {
|
|
|
376
378
|
title: this.requestParams.title,
|
|
377
379
|
env: this.requestParams.env,
|
|
378
380
|
group_title: this.requestParams.group_title,
|
|
381
|
+
isBatchEnabled: this.requestParams.isBatchEnabled,
|
|
379
382
|
};
|
|
380
383
|
|
|
381
384
|
debug('Run', runParams);
|
|
@@ -405,6 +408,10 @@ class XmlReader {
|
|
|
405
408
|
|
|
406
409
|
return Promise.all(this.pipes.map(p => p.finishRun(dataString)));
|
|
407
410
|
}
|
|
411
|
+
|
|
412
|
+
async _finishRun() {
|
|
413
|
+
return Promise.all(this.pipes.map(p => p.finishRun({ status: 'finished' })));
|
|
414
|
+
}
|
|
408
415
|
}
|
|
409
416
|
|
|
410
417
|
module.exports = XmlReader;
|