Home Explore Blog 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
30127b41 (1st chunk of `nixos/doc/manual/development/linking-nixos-tests-to-packages.section.md`)
Title: Linking NixOS Tests to Packages
Summary
NixOS module tests can be linked to the packages they test, enabling automatic test execution during code review when the package is modified. This functionality is detailed in the nixpkgs manual.