Skip to content

Commit fdd4f90

Browse files
committed
Merge branch 'main' into adaptive-testing-smarter-testing
2 parents 0652aec + 1719767 commit fdd4f90

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

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

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

347+
[NOTE]
348+
====
349+
*Multi-project/monorepo with the same filenames across sub-packages?*
350+
351+
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.
352+
353+
[source,yaml]
354+
----
355+
# .circleci/test-suites.yml
356+
name: service-1 tests
357+
options:
358+
adaptive-testing: true
359+
impact-key: service-1
360+
---
361+
name: service-2 tests
362+
options:
363+
adaptive-testing: true
364+
impact-key: service-2
365+
----
366+
====
367+
347368
[source,yaml]
348369
----
349370
# .circleci/test-suites.yml
@@ -522,6 +543,10 @@ Any remaining tests will be analysed the next time test analysis is run.
522543
|true
523544
|Whether the tests should be distributed across a shared queue and fetched across multiple dynamic batches. +
524545
If a test runner has slow start up time per batch, disabling this can speed up tests.
546+
547+
|`impact-key`
548+
|`default`
549+
|Group relevant impact data together using a matching key within the same project.
525550
|===
526551
--
527552

0 commit comments

Comments
 (0)