@testomatio/reporter 1.4.1-beta-wdio-bdd → 1.4.1

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.
@@ -10,7 +10,7 @@ const debug = require('debug')('@testomatio/reporter:util');
10
10
  *
11
11
  * @returns {String|null} testId
12
12
  */
13
- const parseTest = testTitle => {
13
+ const getTestomatIdFromTestTitle = testTitle => {
14
14
  if (!testTitle) return null;
15
15
 
16
16
  const captures = testTitle.match(/@T[\w\d]{8}/);
@@ -328,7 +328,7 @@ module.exports = {
328
328
  specificTestInfo,
329
329
  isValidUrl,
330
330
  ansiRegExp,
331
- parseTest,
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "1.4.1-beta-wdio-bdd",
3
+ "version": "1.4.1",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "typings": "typings/index.d.ts",