Home Explore Blog Models CI



nixpkgs

pkgs/build-support/testers/test/README.md
0192efddcf3e8399c6f82e7b8e31b45365f20aeb6e0834260000000300000106
# 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.

Chunks
402e1fee (1st chunk of `pkgs/build-support/testers/test/README.md`)
Title: Tests for Testers
Summary
This section introduces the concept of testing "testers" themselves, which are described as functions. It explains that while the correctness of typical tests often stems from their simplicity, this principle doesn't always apply to testers. Therefore, dedicated tests are required to ensure the correctness of these tester functions, with an example command `cd nixpkgs; nix-build -A tests.testers` provided for execution.