@uuv/cypress 1.8.2 → 1.8.3
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/CHANGELOG.md +8 -0
- package/dist/cypress/cypress.config.js +8 -4
- package/dist/lib/uuv-cli.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.8.3](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.8.2...runner-cypress-v1.8.3) (2023-08-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **runner-cypress:** call badeball preprecessor befor teamcity logs, [#239](https://github.com/Orange-OpenSource/uuv/issues/239) ([f12ae26](https://github.com/Orange-OpenSource/uuv/commit/f12ae261e71d4662ea0cc7b3a2cbcd32344a19b2))
|
|
7
|
+
* **runner-cypress:** return error code when an error occured, [#239](https://github.com/Orange-OpenSource/uuv/issues/239) ([fbc8b97](https://github.com/Orange-OpenSource/uuv/commit/fbc8b97eacef535356e479a7d87fdf2e16df1549))
|
|
8
|
+
|
|
1
9
|
## [1.8.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.8.1...runner-cypress-v1.8.2) (2023-08-31)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -64,19 +64,23 @@ async function setupNodeEvents(on, config) {
|
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
}));
|
|
67
|
-
on("before:run", () => {
|
|
67
|
+
on("before:run", async () => {
|
|
68
|
+
await (0, cypress_cucumber_preprocessor_1.beforeRunHandler)(config);
|
|
68
69
|
logTeamCity("##teamcity[progressStart 'Running UUV Tests']");
|
|
69
70
|
});
|
|
70
|
-
on("after:run", () => {
|
|
71
|
+
on("after:run", async () => {
|
|
72
|
+
await (0, cypress_cucumber_preprocessor_1.afterRunHandler)(config);
|
|
71
73
|
logTeamCity("##teamcity[progressFinish 'Running UUV Tests']");
|
|
72
74
|
});
|
|
73
|
-
on("before:spec", (spec) => {
|
|
75
|
+
on("before:spec", async (spec) => {
|
|
74
76
|
if (!startedFile.includes(spec.absolute)) {
|
|
77
|
+
await (0, cypress_cucumber_preprocessor_1.beforeSpecHandler)(config);
|
|
75
78
|
logTeamCity(`##teamcity[testSuiteStarted ${teamcityAddName(spec.baseName)} ${teamcityFlowId(spec.baseName)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
|
|
76
79
|
startedFile.push(spec.absolute);
|
|
77
80
|
}
|
|
78
81
|
});
|
|
79
|
-
on("after:spec", (spec, results) => {
|
|
82
|
+
on("after:spec", async (spec, results) => {
|
|
83
|
+
await (0, cypress_cucumber_preprocessor_1.afterSpecHandler)(config, spec, results);
|
|
80
84
|
results?.tests?.forEach(test => {
|
|
81
85
|
logTeamCity(`##teamcity[testStarted ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.baseName)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
|
|
82
86
|
if (test.state === "passed") {
|
package/dist/lib/uuv-cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/cypress",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
|
|
6
6
|
"description": "A solution to run E2E tests written in cucumber(BDD) with cypress.",
|