at 18.09-beta 799 B view raw
1<chapter xmlns="http://docbook.org/ns/docbook" 2 xmlns:xlink="http://www.w3.org/1999/xlink" 3 xmlns:xi="http://www.w3.org/2001/XInclude" 4 version="5.0" 5 xml:id="sec-nixos-tests"> 6 <title>NixOS Tests</title> 7 <para> 8 When you add some feature to NixOS, you should write a test for it. NixOS 9 tests are kept in the directory 10 <filename 11xlink:href="https://github.com/NixOS/nixpkgs/tree/master/nixos/tests">nixos/tests</filename>, 12 and are executed (using Nix) by a testing framework that automatically starts 13 one or more virtual machines containing the NixOS system(s) required for the 14 test. 15 </para> 16 <xi:include href="writing-nixos-tests.xml" /> 17 <xi:include href="running-nixos-tests.xml" /> 18 <xi:include href="running-nixos-tests-interactively.xml" /> 19</chapter>