From 33e70194d32b8eb487b2f882b94353e0aed662cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Thu, 18 Aug 2022 00:14:07 +0200 Subject: [PATCH] Link to the randomized-shard-registration script from usage tips --- docs/faq.md | 1 + docs/usage-tips.md | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index e57e5001..81d8be68 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -7,6 +7,7 @@ [Why cannot I derive from the built-in reporters?](#why-cannot-i-derive-from-the-built-in-reporters)
[What is Catch2's ABI stability policy?](#what-is-catch2s-abi-stability-policy)
[What is Catch2's API stability policy?](#what-is-catch2s-api-stability-policy)
+[Does Catch2 support running tests in parallel?](#does-catch2-support-running-tests-in-parallel)
## How do I run global setup/teardown only if tests will be run? diff --git a/docs/usage-tips.md b/docs/usage-tips.md index d62dedbe..8e5c3df1 100644 --- a/docs/usage-tips.md +++ b/docs/usage-tips.md @@ -73,6 +73,11 @@ seed, e.g. ./tests --order rand --shard-index 2 --shard-count 3 --rng-seed 0xBEEF ``` +Catch2 actually provides a helper to automatically register multiple shards +as CTest tests, with shared random seed that changes each CTest invocation. +For details look at the documentation of +[`CatchShardTests.cmake` CMake script](cmake-integration.md#catchshardtestscmake). + ## Organizing tests into binaries