artes 1.0.49 → 1.0.50

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.
@@ -34,10 +34,9 @@ module.exports = {
34
34
  import: artesConfig.import || [], // Support code paths
35
35
 
36
36
  // Formatting and output
37
- format: artesConfig.format || [
38
- "rerun:@rerun.txt",
39
- "allure-cucumberjs/reporter",
40
- ], // Formatter names/paths
37
+ format: process.env.REPORT_FORMAT
38
+ ? JSON.parse(process.env.REPORT_FORMAT)
39
+ : artesConfig.format || ["rerun:@rerun.txt", "allure-cucumberjs/reporter"], // Formatter names/paths
41
40
  formatOptions: artesConfig.formatOptions || {
42
41
  resultsDir: `allure-result`,
43
42
  }, // Formatter options
package/executer.js CHANGED
@@ -43,11 +43,11 @@ function main() {
43
43
  // }
44
44
 
45
45
  if (flags.report) {
46
- runTests();
46
+ runTests(flags.report);
47
47
  generateReport();
48
48
  cleanUp();
49
49
  } else {
50
- runTests();
50
+ runTests(flags.report);
51
51
  cleanUp();
52
52
  }
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "The package provide step definitions and user writes feature files, and the package handles automation, with optional POM files and custom step definitions.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,7 +1,10 @@
1
1
  const { spawnSync } = require("child_process");
2
2
  const { moduleConfig } = require("../imports/commons");
3
3
 
4
- function runTests() {
4
+ function runTests(flag) {
5
+
6
+ flag ? process.env.REPORT_FORMAT = JSON.stringify(["rerun:@rerun.txt", "allure-cucumberjs/reporter"]) : "";
7
+
5
8
  try {
6
9
  console.log("🧪 Running tests...");
7
10
  process.env.FORCE_COLOR = "1";