@uuv/cypress 1.8.1 → 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 +15 -0
- package/CONTRIBUTING.md +7 -8
- package/dist/cypress/cypress.config.js +13 -5
- package/dist/lib/uuv-cli.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
9
|
+
## [1.8.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.8.1...runner-cypress-v1.8.2) (2023-08-31)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **runner-cypress:** check if testsuite is not already started, [#232](https://github.com/Orange-OpenSource/uuv/issues/232) ([a8d373f](https://github.com/Orange-OpenSource/uuv/commit/a8d373f58e81db799cd7e88eaac54fb98c74eba0))
|
|
15
|
+
|
|
1
16
|
## [1.8.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.8.0...runner-cypress-v1.8.1) (2023-08-25)
|
|
2
17
|
|
|
3
18
|
|
package/CONTRIBUTING.md
CHANGED
|
@@ -70,11 +70,10 @@ Git commits in _UUV_ shall be:
|
|
|
70
70
|
|
|
71
71
|
1. **atomic** (1 commit `=` 1 and only 1 _thing_),
|
|
72
72
|
2. **semantic** (using [semantic-release commit message syntax](https://semantic-release.gitbook.io/semantic-release/#commit-message-format)).
|
|
73
|
-
3. **pattern**
|
|
74
|
-
- **SCOPE
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
```
|
|
73
|
+
3. **pattern**
|
|
74
|
+
- **SCOPE**: one of (build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test, release)
|
|
75
|
+
- **PACKAGE** _(optional)_: one of (assistant, assistant-electron, docs, intellij-plugin, runner-commons, runner-cypress, runner-playwright)
|
|
76
|
+
- **Pattern**: SCOPE(PACKAGE): commit message, #issue_identifier
|
|
77
|
+
- ```bash
|
|
78
|
+
perf(runner-cypress): optimize bdd request, #51
|
|
79
|
+
```
|
|
@@ -27,6 +27,7 @@ exports.setupNodeEvents = void 0;
|
|
|
27
27
|
const webpack = __importStar(require("@cypress/webpack-preprocessor"));
|
|
28
28
|
const cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor");
|
|
29
29
|
async function setupNodeEvents(on, config) {
|
|
30
|
+
const startedFile = [];
|
|
30
31
|
await (0, cypress_cucumber_preprocessor_1.addCucumberPreprocessorPlugin)(on, config);
|
|
31
32
|
on("file:preprocessor", webpack.default({
|
|
32
33
|
webpackOptions: {
|
|
@@ -63,16 +64,23 @@ async function setupNodeEvents(on, config) {
|
|
|
63
64
|
},
|
|
64
65
|
},
|
|
65
66
|
}));
|
|
66
|
-
on("before:run", () => {
|
|
67
|
+
on("before:run", async () => {
|
|
68
|
+
await (0, cypress_cucumber_preprocessor_1.beforeRunHandler)(config);
|
|
67
69
|
logTeamCity("##teamcity[progressStart 'Running UUV Tests']");
|
|
68
70
|
});
|
|
69
|
-
on("after:run", () => {
|
|
71
|
+
on("after:run", async () => {
|
|
72
|
+
await (0, cypress_cucumber_preprocessor_1.afterRunHandler)(config);
|
|
70
73
|
logTeamCity("##teamcity[progressFinish 'Running UUV Tests']");
|
|
71
74
|
});
|
|
72
|
-
on("before:spec", (spec) => {
|
|
73
|
-
|
|
75
|
+
on("before:spec", async (spec) => {
|
|
76
|
+
if (!startedFile.includes(spec.absolute)) {
|
|
77
|
+
await (0, cypress_cucumber_preprocessor_1.beforeSpecHandler)(config);
|
|
78
|
+
logTeamCity(`##teamcity[testSuiteStarted ${teamcityAddName(spec.baseName)} ${teamcityFlowId(spec.baseName)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
|
|
79
|
+
startedFile.push(spec.absolute);
|
|
80
|
+
}
|
|
74
81
|
});
|
|
75
|
-
on("after:spec", (spec, results) => {
|
|
82
|
+
on("after:spec", async (spec, results) => {
|
|
83
|
+
await (0, cypress_cucumber_preprocessor_1.afterSpecHandler)(config, spec, results);
|
|
76
84
|
results?.tests?.forEach(test => {
|
|
77
85
|
logTeamCity(`##teamcity[testStarted ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.baseName)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
|
|
78
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.",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@badeball/cypress-cucumber-preprocessor": "16.0.3",
|
|
47
47
|
"@cypress/webpack-preprocessor": "5.17.1",
|
|
48
48
|
"@testing-library/cypress": "9.0.0",
|
|
49
|
-
"@uuv/runner-commons": "1.6.
|
|
49
|
+
"@uuv/runner-commons": "1.6.5",
|
|
50
50
|
"axe-core": "4.7.2",
|
|
51
51
|
"chalk": "4.1.2",
|
|
52
52
|
"cucumber-json-report-formatter": "0.1.4",
|