artes 1.0.82 → 1.0.83

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.
@@ -18,7 +18,7 @@ module.exports = {
18
18
  default: {
19
19
  // File paths and patterns
20
20
  testPercentage: process.env.PERCENTAGE
21
- ? process.env.PERCENTAGE
21
+ ? Number(process.env.PERCENTAGE)
22
22
  : artesConfig.testPercentage || 0, // number - Percentage of tests to run (0-100)
23
23
  timeout: artesConfig.timeout || 30, // Default timeout in milliseconds
24
24
  paths: process.env.FEATURES
@@ -51,7 +51,7 @@ module.exports = {
51
51
 
52
52
  // Execution options
53
53
  parallel: process.env.PARALLEL
54
- ? JSON.parse(process.env.PARALLEL)
54
+ ? Number(process.env.PARALLEL)
55
55
  : artesConfig.parallel || 1, // Number of parallel workers
56
56
  dryRun: process.env.DRYRUN
57
57
  ? JSON.parse(process.env.DRYRUN)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,11 +34,12 @@ function runTests(args, flags) {
34
34
  console.log("Running mode:", flags.headless ? "headless" : "headed");
35
35
  flags.headless ? (process.env.MODE = JSON.stringify(true)) : false;
36
36
 
37
- flags.parallel ? (process.env.PARALLEL = JSON.stringify(parallel)) : "";
37
+ flags.parallel ? (process.env.PARALLEL = parallel) : "";
38
38
  flags.retry ? (process.env.RETRY = JSON.stringify(retry)) : "";
39
39
  flags.dryrun ? (process.env.DRYRUN = JSON.stringify(true)) : "";
40
40
  flags.percentage ? (process.env.PERCENTAGE = percentage) : "";
41
-
41
+
42
+
42
43
  try {
43
44
  console.log("🧪 Running tests...");
44
45
  process.env.FORCE_COLOR = "1";