Reference
flakeModule
The flakeModule for flake-parts.
lib
module
The nix module for validation of inputs etc.
Used internally by mkNixtestConfig.
autodiscover
autodiscover {
dir,
pattern ? ".*_test.nix",
}
Finds all test files in dir matching pattern.
Returns a list of modules (can be passed to mkNixtest's modules arg).
mkNixtestConfig
mkNixtestConfig {
modules,
args ? {},
}
Evaluates the test modules.
args are passed to the modules using _module.args = args.
Noteworthy attributes:
app: nixtest wrapperfinalConfigJson: derivation containing the tests json file
mkNixtest
mkNixtest {
modules,
args ? {},
}
Creates the nixtest wrapper, using the tests in modules.
Basically (mkNixtestConfig <arguments>).app.