@uuv/cypress 1.8.0 → 1.8.2
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 +14 -0
- package/CONTRIBUTING.md +7 -8
- package/dist/cypress/cypress.config.js +6 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.8.2](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.8.1...runner-cypress-v1.8.2) (2023-08-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **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))
|
|
7
|
+
|
|
8
|
+
## [1.8.1](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.8.0...runner-cypress-v1.8.1) (2023-08-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **intellij-plugin:** manage result.test null case, closes [#228](https://github.com/Orange-OpenSource/uuv/issues/228) ([996982f](https://github.com/Orange-OpenSource/uuv/commit/996982fbc37016012fdff00bef24aad0ab69c8a0))
|
|
14
|
+
|
|
1
15
|
# [1.8.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v1.7.3...runner-cypress-v1.8.0) (2023-08-22)
|
|
2
16
|
|
|
3
17
|
|
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: {
|
|
@@ -70,10 +71,13 @@ async function setupNodeEvents(on, config) {
|
|
|
70
71
|
logTeamCity("##teamcity[progressFinish 'Running UUV Tests']");
|
|
71
72
|
});
|
|
72
73
|
on("before:spec", (spec) => {
|
|
73
|
-
|
|
74
|
+
if (!startedFile.includes(spec.absolute)) {
|
|
75
|
+
logTeamCity(`##teamcity[testSuiteStarted ${teamcityAddName(spec.baseName)} ${teamcityFlowId(spec.baseName)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
|
|
76
|
+
startedFile.push(spec.absolute);
|
|
77
|
+
}
|
|
74
78
|
});
|
|
75
79
|
on("after:spec", (spec, results) => {
|
|
76
|
-
results
|
|
80
|
+
results?.tests?.forEach(test => {
|
|
77
81
|
logTeamCity(`##teamcity[testStarted ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.baseName)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
|
|
78
82
|
if (test.state === "passed") {
|
|
79
83
|
// eslint-disable-next-line max-len
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/cypress",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
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",
|