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
Copy file name to clipboardExpand all lines: docs/guides/modules/test/pages/adaptive-testing.adoc
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,7 +268,7 @@ The two most common causes for this:
268
268
* The tests were run with a different job name, in this case, rerunning the job should find timing data.
269
269
* The `<< outputs.junit >>` template variable is not set up correctly. Ensure that the run command uses the template variable and the `store_test_results` step provides a path to a directory so that all batches of `<< outputs.junit >>` are stored.
270
270
271
-
If the tests are still slower, the test runner being used might have initial start up time when running tests, this can cause significant slow down using the dynamic batching as each batch needs to do that initial start up.
271
+
If the tests are still slower, the test runner being used might have initial start up time when running tests. Test runner start up time can cause significant slow down using the dynamic batching as each batch needs to do that initial start up.
272
272
273
273
Add the `dynamic-batching: false` option to `.circleci/test-suites.yml` to disable dynamic batching.
274
274
@@ -294,7 +294,11 @@ The goal of this section is to enable adaptive testing for your test suite.
294
294
295
295
=== 2.1 Update the test suites file
296
296
297
-
When using adaptive testing for test impact analysis, the `discover` command discovers all tests in a test suite, the `run` command runs only impacted tests and a new command, the `analysis` command, analyzes each test impacted.
297
+
When using adaptive testing for test impact analysis the following commands are used:
298
+
299
+
* The `discover` command discovers all tests in a test suite.
300
+
* The `run` command runs only impacted tests and a new command.
301
+
* The `analysis` command analyzes each test impacted.
298
302
299
303
. Update the `.circleci/test-suites.yml` file to include a stubbed analysis command.
300
304
. Update the `.circleci/test-suites.yml` file to include the option `adaptive-testing: true`.
* `<< outputs.lcov >>`: Coverage data in LCOV format.
329
333
* `<< outputs.go-coverage >>`: Coverage data in Go coverage format.
330
334
331
-
The coverage location does not need to be set in the outputs map, a temporary file will be created and used during analysis with the template variable from the analysis command.
335
+
The coverage location does not need to be set in the outputs map. A temporary file will be created and used during analysis with the template variable from the analysis command.
332
336
333
337
. Update your `.circleci/test-suites.yml` file with the analysis command.
334
338
@@ -859,4 +863,4 @@ Adaptive testing is runner-agnostic. We provide default configurations for the f
859
863
* Cypress (E2E testing)
860
864
* Vitest
861
865
862
-
The key requirement is that your test runner can generate coverage data in a parsable format (currently, we suppport LCOV and Go's "legacy coverage" format).
866
+
The key requirement is that your test runner can generate coverage data in a parsable format (currently, we support LCOV and Go's "legacy coverage" format).
0 commit comments