4.flake-parts/dev/tests
Robert Hensing 577772566b Memoize undeclared systems
The memoize function is not a pretty thing in terms of implementation,
but it's exactly what we need to solve this UX problem and performance
problem.

Without this, every distinct `withSystem` call will cause a re-evaluation
of the `perSystem` module, which is inefficient. Now, it's a one-time
13KB and length(system) attribute lookups: negligible compared to any
instantiations and such.

Nix doesn't offer memoization for functions yet, so this is the best we
can do.
2025-07-21 20:07:18 +02:00
..
eval-tests.nix Memoize undeclared systems 2025-07-21 20:07:18 +02:00
README.md Explain hci effect tests 2022-11-13 12:25:55 +01:00
template.nix dev: Make the test slightly more sensible 2024-01-30 00:00:55 +01:00

Running the tests

These tests can be run locally with the hci effect run command. This gives the tests access to a proper nix daemon and the network.

Designed for convenient deployments, it needs some information from git. You may use --no-token to disable this functionality if you're getting errors, or if you're asked to log in.

Example:

hci effect run --no-token default.effects.tests.template