zaphyra's git: haumea

fork of https://github.com/nix-community/haumea

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
# `loadEvalTests`

Source: [`src/loadEvalTests.nix`](https://github.com/nix-community/haumea/blob/main/src/loadEvalTests.nix)

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

A wrapper around [`load`] to run eval tests using
[`runTests`](https://nixos.org/manual/nixpkgs/unstable/#function-library-lib.debug.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](https://github.com/nix-community/haumea/tree/main/tests)
are loaded with `loadEvalTests`.

Alternatively, [namaka](https://github.com/nix-community/namaka)
provides utilities for snapshot testing,
which can save you some time from writing reference values.

[`load`]: load.html