mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
doc/meta: better explain an advantage or passthru.tests
This commit is contained in:
parent
f4e7ce7719
commit
f4e6f41b72
@ -134,7 +134,7 @@ Tests that are part of the source package are often executed in the `installChec
|
||||
Prefer `passthru.tests` for tests that are introduced in nixpkgs because:
|
||||
|
||||
* `passthru.tests` tests the 'real' package, independently from the environment in which it was built
|
||||
* we can run `passthru.tests` independently
|
||||
* We can run and debug a `passthru.tests` independently, after the package was built (useful if it takes a long time).
|
||||
* `installCheckPhase` adds overhead to each build
|
||||
|
||||
For more on how to write and run package tests, see [`pkgs/README.md`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests).
|
||||
|
Loading…
Reference in New Issue
Block a user