infrastructure/checks/README.md
Fabian Hauser 1ed162b7ce
All checks were successful
CI / build (push) Successful in 2m26s
Implement nixos-modules/static-page test
2025-03-24 22:24:01 +02:00

18 lines
728 B
Markdown

# Tests
## Module Tests
We test our nixos modules with [NixOS tests](https://nixos.org/manual/nixos/stable/index.html#sec-nixos-tests).
Running nixos tests requires QEMU virtualisation, so make sure you have KVM virtualisation support enabled.
Run all: `nix build .#checks.x86_64-linux.nixos-modules`
Run single test: `nix build .#checks.x86_64-linux.nixos-modules.entries.vm-test-run-testNameAsInDerivationName`
### Run Test Interactively
See [upstream documentation](https://nixos.org/manual/nixos/stable/#sec-running-nixos-tests-interactively) for more details.
```bash
nix build .#checks.x86_64-linux.nixos-modules.entries.vm-test-run-testNameAsInDerivationName.driverInteractive
./result/bin/nixos-test-driver
```