artes 1.1.20 → 1.1.21
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 +0 -2
- package/package.json +1 -1
- package/src/helper/imports/commons.js +1 -1
- package/src/hooks/hooks.js +2 -2
package/executer.js
CHANGED
|
@@ -120,7 +120,6 @@ function main() {
|
|
|
120
120
|
process.cwd(),
|
|
121
121
|
"node_modules",
|
|
122
122
|
"artes",
|
|
123
|
-
"testsStatus",
|
|
124
123
|
"EXIT_CODE.txt",
|
|
125
124
|
),
|
|
126
125
|
)
|
|
@@ -130,7 +129,6 @@ function main() {
|
|
|
130
129
|
process.cwd(),
|
|
131
130
|
"node_modules",
|
|
132
131
|
"artes",
|
|
133
|
-
"testsStatus",
|
|
134
132
|
"EXIT_CODE.txt",
|
|
135
133
|
),
|
|
136
134
|
"utf8",
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ const moduleConfig = {
|
|
|
35
35
|
stepsPath: path.join(projectPath, "/tests/steps/*.js"),
|
|
36
36
|
pomPath: path.join(projectPath, "/tests/POMs"),
|
|
37
37
|
cleanUpPaths:
|
|
38
|
-
"allure-result allure-results test-results @rerun.txt testsStatus"
|
|
38
|
+
"allure-result allure-results test-results @rerun.txt testsStatus EXIT_CODE.txt"
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
module.exports = {
|
package/src/hooks/hooks.js
CHANGED
|
@@ -155,12 +155,12 @@ AfterAll(async function () {
|
|
|
155
155
|
console.log(
|
|
156
156
|
`Tests passed required ${cucumberConfig.default.testPercentage}% success rate with ${successPercentage.toFixed(2)}% !`,
|
|
157
157
|
);
|
|
158
|
-
fs.writeFileSync(path.join(
|
|
158
|
+
fs.writeFileSync(path.join(process.cwd(), `EXIT_CODE.txt`), "0");
|
|
159
159
|
} else {
|
|
160
160
|
console.log(
|
|
161
161
|
`Tests failed at required ${cucumberConfig.default.testPercentage}% success rate with ${successPercentage.toFixed(2)}%!`,
|
|
162
162
|
);
|
|
163
|
-
fs.writeFileSync(path.join(
|
|
163
|
+
fs.writeFileSync(path.join(process.cwd(), `EXIT_CODE.txt`), "1");
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
}
|