Skip to content

Commit 1719767

Browse files
Merge pull request #9757 from circleci/test-52/impact-key
TEST-52 Add impact-key to the adaptive testing docs
2 parents f5513e9 + eec9f9c commit 1719767

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/guides/modules/test/pages/adaptive-testing.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,27 @@ The coverage location does not need to be set in the outputs map. A temporary fi
343343

344344
. Update your `.circleci/test-suites.yml` file with the analysis command.
345345

346+
[NOTE]
347+
====
348+
*Multi-project/monorepo with the same filenames across sub-packages?*
349+
350+
To prevent the files and tests conflicting with others in the same project (`service-1/index.test.ts`, `service-2/index.test.ts`), the `impact-key` option can be passed to group relevant impact data together when running analysis.
351+
352+
[source,yaml]
353+
----
354+
# .circleci/test-suites.yml
355+
name: service-1 tests
356+
options:
357+
adaptive-testing: true
358+
impact-key: service-1
359+
---
360+
name: service-2 tests
361+
options:
362+
adaptive-testing: true
363+
impact-key: service-2
364+
----
365+
====
366+
346367
[source,yaml]
347368
----
348369
# .circleci/test-suites.yml
@@ -521,6 +542,10 @@ Any remaining tests will be analysed the next time test analysis is run.
521542
|true
522543
|Whether the tests should be distributed across a shared queue and fetched across multiple dynamic batches. +
523544
If a test runner has slow start up time per batch, disabling this can speed up tests.
545+
546+
|`impact-key`
547+
|`default`
548+
|Group relevant impact data together using a matching key within the same project.
524549
|===
525550
--
526551

0 commit comments

Comments
 (0)