1# NixOS Tests {#sec-nixos-tests}
2
3When you add some feature to NixOS, you should write a test for it.
4NixOS tests are kept in the directory `nixos/tests`, and are executed
5(using Nix) by a testing framework that automatically starts one or more
6virtual machines containing the NixOS system(s) required for the test.
7
8```{=include=} sections
9writing-nixos-tests.section.md
10running-nixos-tests.section.md
11running-nixos-tests-interactively.section.md
12linking-nixos-tests-to-packages.section.md
13testing-hardware-features.section.md
14```