You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Update your install job to install the `@cypress/extract-cloud-results` module.
158
+
2. Pass in the necessary arguments to `getUICoverageResults`.
159
+
3. Add a new step to the job that runs your Cypress tests to verify the UI Coverage results.
160
+
161
+
:::info
110
162
111
-
Add steps to your CI configuration to install the module, fetch results, and verify coverage:
163
+
If you record multiple runs in a single CI build, you must record these runs using the `--tag` parameter and then call `getUICoverageResults` with the `runTags` argument for each run.
164
+
165
+
This is necessary to identify each unique run and return a corresponding set of results. The tags are how each run is uniquely identified.
166
+
167
+
**Example**
168
+
169
+
- Let's imagine that within a single CI build you call `cypress run --record` multiple times because you're running one set of tests against a `staging` environment, followed by a `production` environment.
170
+
- In this scenario, you pass a different `--tag` to each cypress run
171
+
-`cypress run --record --tag staging`
172
+
-`cypress run --record --tag production`
173
+
- When calling `getUICoverageResults` you would then pass these same tags to get the unique set of results for each run
1. Update your install job to install the `@cypress/extract-cloud-results` module.
311
-
2. Pass in the necessary arguments to `getUICoverageResults`.
312
-
3. Add a new step to the job that runs your Cypress tests to verify the UI Coverage results.
313
-
314
-
:::info
315
-
316
-
If you record multiple runs in a single CI build, you must record these runs using the `--tag` parameter and then call `getUICoverageResults` with the `runTags` argument for each run.
317
-
318
-
This is necessary to identify each unique run and return a corresponding set of results. The tags are how each run is uniquely identified.
319
-
320
-
**Example**
321
-
322
-
- Let's imagine that within a single CI build you call `cypress run --record` multiple times because you're running one set of tests against a `staging` environment, followed by a `production` environment.
323
-
- In this scenario, you pass a different `--tag` to each cypress run
324
-
-`cypress run --record --tag staging`
325
-
-`cypress run --record --tag production`
326
-
- When calling `getUICoverageResults` you would then pass these same tags to get the unique set of results for each run
0 commit comments