artes 1.0.81 → 1.0.82

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/README.md CHANGED
@@ -284,6 +284,7 @@ You can configure Artes by editing the `artes.config.js` file. Below are the def
284
284
  | `require` | `[moduleConfig.stepsPath, "src/stepDefinitions/*.js", "src/hooks/hooks.js"]` | Support code paths (CommonJS). |
285
285
  | `pomPath` | `moduleConfig.pomPath` | Path to Page Object Models. |
286
286
  | `import` | `[]` | Support code paths. |
287
+ | `testPercentage` | `0` | Define test coverage percentage |
287
288
  | `format` | `["rerun:@rerun.txt", "allure-cucumberjs/reporter"]` | Formatter names/paths. |
288
289
  | `formatOptions` | `{ "resultsDir": "allure-result" }` | Formatter options. |
289
290
  | `parallel` | `1` | Number of parallel workers. |
package/executer.js CHANGED
@@ -51,13 +51,15 @@ function main() {
51
51
  // }
52
52
 
53
53
  if (flags.report) {
54
- runTests(args, flags);
54
+ const result = runTests(args, flags)
55
55
  generateReport();
56
56
  cleanUp();
57
- } else {
58
- runTests(args, flags);
59
- cleanUp();
60
- }
57
+ process.exit(result.status);
58
+ } else {
59
+ const result = runTests(args, flags);
60
+ cleanUp();
61
+ process.exit(result.status);
62
+ }
61
63
  }
62
64
 
63
65
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -40,6 +40,7 @@ function createProject(createYes) {
40
40
 
41
41
  // Configuration options:
42
42
  // env: "", // string - Environment name for tests
43
+ //testPercentage: 0, // number - Minimum success rate percentage(Default: 0)
43
44
  // baseURL: "", // string - Base URL for API tests
44
45
  // paths: [], // string[] - Paths to feature files
45
46
  // steps: "", // string - Step definitions files
@@ -56,7 +56,7 @@ function runTests(args, flags) {
56
56
  },
57
57
  });
58
58
  console.log("✅ Tests running completed successfully!");
59
- process.exit(result.status);
59
+ return result;
60
60
  } catch (error) {
61
61
  console.error("❌ Test execution failed:", error);
62
62
  process.exit(1);