1<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="sec-nixos-tests">
2 <title>NixOS Tests</title>
3 <para>
4 When you add some feature to NixOS, you should write a test for it.
5 NixOS tests are kept in the directory
6 <literal>nixos/tests</literal>, and are executed (using Nix) by a
7 testing framework that automatically starts one or more virtual
8 machines containing the NixOS system(s) required for the test.
9 </para>
10 <xi:include href="writing-nixos-tests.section.xml" />
11 <xi:include href="running-nixos-tests.section.xml" />
12 <xi:include href="running-nixos-tests-interactively.section.xml" />
13 <xi:include href="linking-nixos-tests-to-packages.section.xml" />
14</chapter>