hex/.config/nextest.toml
Kit Langton 7c180101bf Add scripts/check with nextest timeouts; make hanging tests deterministic
scripts/check runs fmt, clippy and nextest (falls back to cargo test).
.config/nextest.toml kills a test after 30 s (60 s for GPU scenes) and
reports it by name; CI uses the ci profile.

Fixes tests that hung or depended on the host: HID modifier queries and
Carbon layout lookups off the main thread, the leaked i18n language,
the stale 2.3.0 driver version, CoreAudio in the startup-failure test,
unbounded accept/recv waits, a 20 ms sleep race in local_api, and
keyboard_layout under --list.
2026-10-23 20:03:00 -07:00

33 lines
1,009 B
TOML

# Each test runs in its own process. A test still running after
# `period * terminate-after` is killed and reported by name as TIMEOUT.
[profile.default]
slow-timeout = { period = "15s", terminate-after = 2 }
status-level = "slow"
final-status-level = "fail"
failure-output = "final"
fail-fast = false
[profile.default.junit]
path = "junit.xml"
[test-groups]
gpu = { max-threads = 2 }
# Rune scenes render on the GPU; the driver test compiles the C plug-in.
[[profile.default.overrides]]
filter = "test(/scene|golden|rune_ui::/) | test(driver_plugin_loopback)"
test-group = "gpu"
slow-timeout = { period = "30s", terminate-after = 2 }
# CI runners are slower and render on software Vulkan.
[profile.ci]
slow-timeout = { period = "60s", terminate-after = 2 }
failure-output = "immediate-final"
[[profile.ci.overrides]]
filter = "test(/scene|golden|rune_ui::/) | test(driver_plugin_loopback)"
test-group = "gpu"
slow-timeout = { period = "90s", terminate-after = 2 }
[profile.ci.junit]
path = "junit.xml"