artes 1.1.14 → 1.1.15

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/executer.js CHANGED
@@ -71,6 +71,8 @@ flags.features ? (process.env.FEATURES = features) : "";
71
71
  flags.stepDef && console.log("Running step definitions:", flags.stepDef);
72
72
  flags.stepDef ? (process.env.STEP_DEFINITIONS = stepDef) : "";
73
73
 
74
+ flags.trace ? (process.env.TRACE = true) : "";
75
+
74
76
  flags.headless &&
75
77
  console.log("Running mode:", flags.headless ? "headless" : "headed");
76
78
  flags.headless ? (process.env.MODE = JSON.stringify(true)) : false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -38,7 +38,7 @@ Before(async function () {
38
38
 
39
39
  await context.page.setDefaultTimeout(cucumberConfig.default.timeout);
40
40
 
41
- await context.browserContext.tracing.start({
41
+ process.env.TRACE && await context.browserContext.tracing.start({
42
42
  sources: true,
43
43
  screenshots: true,
44
44
  snapshots: true,
@@ -93,7 +93,7 @@ After(async function ({ pickle, result }) {
93
93
  "",
94
94
  );
95
95
 
96
- await context.browserContext.tracing.stop({
96
+ process.env.TRACE && await context.browserContext.tracing.stop({
97
97
  path: path.join(moduleConfig.projectPath, "./trace.zip"),
98
98
  });
99
99
 
@@ -146,7 +146,7 @@ AfterAll(async function () {
146
146
  successPercentage.toFixed(2) >= cucumberConfig.default.testPercentage;
147
147
 
148
148
  if (
149
- cucumberConfig.default.testPercentage != 0 &&
149
+ cucumberConfig.default.testPercentage != undefined &&
150
150
  !isNaN(successPercentage)
151
151
  ) {
152
152
  if (successRate) {