loadEvalTests

Source: src/loadEvalTests.nix

Type: { src, loader?, inputs? } -> { }

A wrapper around load to run eval tests using runTests.

The accepted arguments are exactly the same as load.

This function will throw an error if at least one test failed, otherwise it will always return { } (an empty attribute set).

As an example, haumea's tests are loaded with loadEvalTests.

Alternatively, namaka provides utilities for snapshot testing, which can save you some time from writing reference values.