Files
modeling-app/rust/.config/nextest.toml
Nick Cameron 3d65676ccb Permit concurrent unit tests (#6938)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-15 07:43:03 +12:00

58 lines
1.9 KiB
TOML

[test-groups]
# If a test uses the engine, we want to limit the number that can run in parallel.
# This way we don't start and stop too many engine instances, putting pressure on our cloud.
uses-engine = { max-threads = 32 }
# If a test must run after the engine tests, we want to make sure the engine tests are done first.
after-engine = { max-threads = 32 }
[profile.default]
slow-timeout = { period = "280s", terminate-after = 1 }
[profile.ci]
slow-timeout = { period = "280s", terminate-after = 5 }
[[profile.default.overrides]]
# If a test starts with kcl_test_, then it uses the engine. So, limit its parallelism.
filter = "test(kcl_test_)"
test-group = "uses-engine"
threads-required = 2
[[profile.ci.overrides]]
# If a test starts with kcl_test_, then it uses the engine. So, limit its parallelism.
filter = "test(kcl_test_)"
test-group = "uses-engine"
threads-required = 2
[[profile.default.overrides]]
filter = "test(parser::parser_impl::snapshot_tests)"
slow-timeout = { period = "1s", terminate-after = 5 }
# Create the filters for things that need to run after the engine tests.
# Like generating the docs or the kcl-samples manifest, etc.
[[profile.default.overrides]]
# If a test starts with test_after_engine_, then it needs to be run after the engine tests.
filter = "test(test_after_engine_)"
test-group = "after-engine"
[[profile.ci.overrides]]
# If a test starts with test_after_engine_, then it needs to be run after the engine tests.
filter = "test(test_after_engine_)"
test-group = "after-engine"
[[profile.default.overrides]]
# Generate the docs tests after the engine tests.
filter = "test(docs::gen_std_tests)"
test-group = "after-engine"
[[profile.ci.overrides]]
# Generate the docs tests after the engine tests.
filter = "test(docs::gen_std_tests)"
test-group = "after-engine"
[profile.default.junit]
path = "../../../../test-results/junit.xml"
[profile.ci.junit]
path = "../../../../test-results/junit.xml"