Home Explore Blog Models CI



nixpkgs

nixos/doc/manual/development/linking-nixos-tests-to-packages.section.md
ec90fc1013c993fc57f0a4c527f6ddf4de68c1a84b9fd3f0000000030000015a
# Linking NixOS tests to packages {#sec-linking-nixos-tests-to-packages}

You can link NixOS module tests to the packages that they exercised,
so that the tests can be run automatically during code review when the package gets changed.
This is
[described in the nixpkgs manual](https://nixos.org/manual/nixpkgs/stable/#ssec-nixos-tests-linking).

Chunks
a041f336 (1st chunk of `nixos/doc/manual/development/linking-nixos-tests-to-packages.section.md`)
Title: Linking NixOS Tests to Packages
Summary
This section describes how to link NixOS module tests to the specific packages they test. The purpose of this linkage is to enable automatic execution of these tests during code review whenever a linked package is modified. Further details can be found in the Nixpkgs manual.