Files
nixpkgs/pkgs/build-support/testers/test
Robert Hensing 8d128a4138 testers.testEqualContents: add postFailureMessage parameter
Add an optional postFailureMessage parameter to testEqualContents that allows
users to provide additional context when tests fail. This is particularly useful
for providing instructions on how to update expected results when they change
intentionally.

The message is displayed after the standard failure output, helping maintainers
understand what to do next when a test fails.
2025-08-24 20:09:54 +02:00
..

Tests for the testers

cd nixpkgs
nix-build -A tests.testers

Tests generally derive their own correctness from simplicity, which in the case of testers (themselves functions) does not always work out. Hence the need for tests that test the testers.