Best Practices¶
These guides collect operational advice for writing NixOS tests that are fast to debug, robust in CI, and portable across different environments.
-
Use global and per-operation timeouts so broken tests fail quickly instead of burning CI time.
-
Wait for the right units and ports before asserting on a service.
-
Use parallelism across machines
Start long-running setup on all nodes first, then wait for completion so multi-node tests do not serialize unnecessary work.
-
Keep host packages and guest packages separate so tests stay portable.