@nx/cypress 19.2.0-rc.1 → 19.2.0
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": "@nx/cypress",
|
|
3
|
-
"version": "19.2.0
|
|
3
|
+
"version": "19.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
|
|
6
6
|
"repository": {
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"migrations": "./migrations.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nx/devkit": "19.2.0
|
|
40
|
-
"@nx/eslint": "19.2.0
|
|
41
|
-
"@nx/js": "19.2.0
|
|
39
|
+
"@nx/devkit": "19.2.0",
|
|
40
|
+
"@nx/eslint": "19.2.0",
|
|
41
|
+
"@nx/js": "19.2.0",
|
|
42
42
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
43
43
|
"detect-port": "^1.5.1",
|
|
44
44
|
"tslib": "^2.3.0",
|
|
45
|
-
"@nrwl/cypress": "19.2.0
|
|
45
|
+
"@nrwl/cypress": "19.2.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"cypress": ">= 3 < 14"
|
|
@@ -34,6 +34,7 @@ export interface CypressExecutorOptions extends Json {
|
|
|
34
34
|
port?: number | 'cypress-auto';
|
|
35
35
|
quiet?: boolean;
|
|
36
36
|
runnerUi?: boolean;
|
|
37
|
+
autoCancelAfterFailures?: boolean | number;
|
|
37
38
|
}
|
|
38
39
|
export default function cypressExecutor(options: CypressExecutorOptions, context: ExecutorContext): Promise<{
|
|
39
40
|
success: any;
|
|
@@ -149,6 +149,9 @@ async function runCypress(baseUrl, opts) {
|
|
|
149
149
|
if (opts.quiet) {
|
|
150
150
|
options.quiet = opts.quiet;
|
|
151
151
|
}
|
|
152
|
+
if (opts.autoCancelAfterFailures !== undefined) {
|
|
153
|
+
options.autoCancelAfterFailures = opts.autoCancelAfterFailures;
|
|
154
|
+
}
|
|
152
155
|
options.testingType = opts.testingType;
|
|
153
156
|
const result = await (opts.watch
|
|
154
157
|
? Cypress.open(options)
|
|
@@ -178,6 +178,18 @@
|
|
|
178
178
|
"runnerUi": {
|
|
179
179
|
"type": "boolean",
|
|
180
180
|
"description": "Displays the Cypress Runner UI. Useful for when Test Replay is enabled and you would still like the Cypress Runner UI to be displayed for screenshots and video."
|
|
181
|
+
},
|
|
182
|
+
"autoCancelAfterFailures": {
|
|
183
|
+
"oneOf": [
|
|
184
|
+
{
|
|
185
|
+
"type": "number"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"const": false
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"description": "Specify the number of failures to cancel a run being recorded to the Cypress Cloud or `false` to disable auto-cancellation."
|
|
181
193
|
}
|
|
182
194
|
},
|
|
183
195
|
"additionalProperties": true,
|