@testomatio/reporter 1.4.3 → 1.4.4
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/client.js +6 -1
- package/lib/pipe/testomatio.js +3 -3
- package/lib/xmlReader.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -6,7 +6,7 @@ const fs = require('fs');
|
|
|
6
6
|
const chalk = require('chalk');
|
|
7
7
|
const { randomUUID } = require('crypto');
|
|
8
8
|
const upload = require('./fileUploader');
|
|
9
|
-
const { APP_PREFIX } = require('./constants');
|
|
9
|
+
const { APP_PREFIX, STATUS } = require('./constants');
|
|
10
10
|
const pipesFactory = require('./pipe');
|
|
11
11
|
const { glob } = require('glob');
|
|
12
12
|
const path = require('path');
|
|
@@ -122,6 +122,11 @@ class Client {
|
|
|
122
122
|
|
|
123
123
|
if (isTestShouldBeExculedFromReport(testData)) return [];
|
|
124
124
|
|
|
125
|
+
if (status === STATUS.SKIPPED && process.env.TESTOMATIO_EXCLUDE_SKIPPED) {
|
|
126
|
+
debug('Skipping test from report', testData?.title)
|
|
127
|
+
return []; // do not log skipped tests
|
|
128
|
+
}
|
|
129
|
+
|
|
125
130
|
if (!testData)
|
|
126
131
|
testData = {
|
|
127
132
|
title: 'Unknown test',
|
package/lib/pipe/testomatio.js
CHANGED
|
@@ -354,11 +354,11 @@ class TestomatioPipe {
|
|
|
354
354
|
* @returns
|
|
355
355
|
*/
|
|
356
356
|
async finishRun(params) {
|
|
357
|
-
this
|
|
357
|
+
if (!this.isEnabled) return;
|
|
358
|
+
|
|
359
|
+
await this.#batchUpload();
|
|
358
360
|
if (this.batch.intervalFunction) clearInterval(this.batch.intervalFunction);
|
|
359
361
|
|
|
360
|
-
debug('Finishing run...');
|
|
361
|
-
if (!this.isEnabled) return;
|
|
362
362
|
debug('Finishing run...');
|
|
363
363
|
|
|
364
364
|
if (this.reportingCanceledDueToReqFailures) {
|
package/lib/xmlReader.js
CHANGED