nix-community / nix-unit

Unit testing for Nix code [maintainer=@adisbladis]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nix-unit

This project runs an attribute set of tests compatible with lib.debug.runTests while allowing individual attributes to fail.

Why use nix-unit?

  • Simple structure compatible with lib.debug.runTests

  • Allows individual test attributes to fail individually.

Rather than evaluating the entire test suite in one go, serialise & compare nix-unit uses the Nix evaluator C++ API. Meaning that we can catch test failures individually, even if the failure is caused by an evaluation error.

  • Fast.

No additional processing and coordination overhead caused by the external process approach.

Documentation

https://nix-community.github.io/nix-unit/

About

Unit testing for Nix code [maintainer=@adisbladis]

License:GNU General Public License v3.0


Languages

Language:C++ 59.4%Language:Nix 24.9%Language:Python 12.8%Language:Meson 2.9%