Skip to content

Commit

Permalink
Chore: Nextest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joshleaves committed Mar 3, 2024
1 parent ef204db commit cd89cab
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[store]
dir = "target/nextest"

[profile.default]
retries = 0
test-threads = "num-cpus"
status-level = "fail"
final-status-level = "fail"
failure-output = "final"
fail-fast = true
hide-progress-bar = true


# Treat a test that takes longer than the configured 'period' as slow, and print a message.
# See <https://nexte.st/book/slow-tests> for more information.
#
# Optional: specify the parameter 'terminate-after' with a non-zero integer,
# which will cause slow tests to be terminated after the specified number of
# periods have passed.
# Example: slow-timeout = { period = "60s", terminate-after = 2 }
slow-timeout = { period = "60s" }

# Treat a test as leaky if after the process is shut down, standard output and standard error
# aren't closed within this duration.
#
# This usually happens in case of a test that creates a child process and lets it inherit those
# handles, but doesn't clean the child process up (especially when it fails).
#
# See <https://nexte.st/book/leaky-tests> for more information.
leak-timeout = "100ms"

[profile.default.junit]
report-name = "nextest-run"
store-success-output = false
store-failure-output = true

0 comments on commit cd89cab

Please sign in to comment.