@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 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',
@@ -354,11 +354,11 @@ class TestomatioPipe {
354
354
  * @returns
355
355
  */
356
356
  async finishRun(params) {
357
- this.#batchUpload();
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
@@ -527,4 +527,4 @@ function fetchProperties(item) {
527
527
  .filter(p => p.name === 'Category')
528
528
  .forEach(p => tags.push(p.value));
529
529
  return { title, tags };
530
- }
530
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "typings": "typings/index.d.ts",