content: nextest-version = "0.9.98"
  experimental = ["setup-scripts"]
  
  [profile.default]
  final-status-level = "slow"
  
  [[profile.default.overrides]]
  # test_subprocess_doesnt_exit runs a sleep command for 360 seconds. If integration tests take longer
  # than 180 seconds, it likely means that nextest is stuck waiting for the sleep command to exit.
  # This is a bug.
  filter = 'package(integration-tests)'
  slow-timeout = { period = "60s", terminate-after = 3 }
  test-group = "my-group"
  junit.store-success-output = true
  
  [[profile.default.overrides]]
  filter = 'test(test_single_threaded)'
  run-extra-args = ["--test-threads", "1"]
  
  [[profile.default.scripts]]
  filter = 'package(integration-tests) or binary_id(nextest-runner::integration)'
  setup = "build-seed-archive"
  
  [profile.ci]
  # Don't fail fast in CI to run the full test suite.
  fail-fast = false
  slow-timeout = { period = "60s", terminate-after = 1 }
  
  [profile.ci.junit]
  path = 'junit.xml'
  
  [[profile.ci.overrides]]
  # These tests are a bit flaky on Mac GHA CI runners due to resource exhaustion.
  platform = 'cfg(target_os = "macos")'
  filter = '(package(nextest-runner) and binary(integration)) or package(integration-tests)'
  retries = { count = 3, backoff = "fixed", delay = "1s" }
  
  [profile.test-slow]
  # This is a test profile with a quick slow timeout.
  slow-timeout = "1s"
  
  [profile.test-slow-with-timeout]
  slow-timeout = { period = "1s", terminate-after = 2 }
  retries = 2
  
  [profile.test-retries]
  retries = { backoff = "exponential", count = 3, delay = "5s" }
  
  [profile.with-junit]
  junit = { path = "report.xml" }
  
  [profile.serial]
  test-threads = 1
  
  [[profile.serial.overrides]]
  filter = 'test(foo)'
  retries = 3
  
  # Added for testing.
  [test-groups.my-group]
  max-threads = 8
  
  [test-groups.unused-group]
  max-threads = 8
  
  [scripts.setup.build-seed-archive]
  # This command builds a seed archive that's used by the integration-tests
  # package. This archive is not currently used by the older nextest-runner
  # integration framework, but that should really go away at some point.
  command = "cargo run --bin build-seed-archive"
  