at 18.03-beta 783 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 7<title>NixOS Tests</title> 8 9<para>When you add some feature to NixOS, you should write a test for 10it. NixOS tests are kept in the directory <filename 11xlink:href="https://github.com/NixOS/nixpkgs/tree/master/nixos/tests">nixos/tests</filename>, 12and are executed (using Nix) by a testing framework that automatically 13starts one or more virtual machines containing the NixOS system(s) 14required for the test.</para> 15 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 20</chapter>