artes 1.0.80 → 1.0.81

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -55,8 +55,8 @@ function runTests(args, flags) {
55
55
  CI: "false",
56
56
  },
57
57
  });
58
-
59
- console.log("✅ Tests completed successfully!");
58
+ console.log("✅ Tests running completed successfully!");
59
+ process.exit(result.status);
60
60
  } catch (error) {
61
61
  console.error("❌ Test execution failed:", error);
62
62
  process.exit(1);
@@ -129,17 +129,17 @@ After(async function ({ pickle, result }) {
129
129
  AfterAll(async function () {
130
130
  const successPercentage = 100 - (testsFailed / totalTests) * 100;
131
131
  const successRate =
132
- successPercentage.toFixed(2) >= cucumberConfig.testPercentage;
132
+ successPercentage.toFixed(2) >= cucumberConfig.default.testPercentage;
133
133
 
134
- if (!isNaN(successPercentage)) {
134
+ if (!isNaN(successPercentage)) {
135
135
  if (successRate) {
136
136
  console.log(
137
- `Tests passed with ${successPercentage.toFixed(2)}% results!`,
137
+ `Tests passed required ${cucumberConfig.default.testPercentage}% success rate with ${successPercentage.toFixed(2)}% !`,
138
138
  );
139
139
  process.exit(0);
140
140
  } else {
141
141
  console.log(
142
- `Tests failed with ${successPercentage.toFixed(2)}% results!`,
142
+ `Tests failed at required ${cucumberConfig.default.testPercentage}% success rate with ${successPercentage.toFixed(2)}%!`,
143
143
  );
144
144
  process.exit(1);
145
145
  }