Flexible test runner for Nix code written in Go. https://nixtest.projects.tf
Find a file
2025-06-02 13:34:59 +02:00
cmd/nixtest feat: add pure mode which unsets env variables before script tests 2025-05-31 19:06:40 +02:00
docs docs: add documentation 2025-06-02 13:34:59 +02:00
lib chore(lib): add assertion for script to not be null when type=="script" 2025-06-02 01:13:54 +02:00
snapshots feat: add support for pretty/nix format 2025-05-10 21:55:08 +02:00
.envrc chore: initial prototype 2025-05-03 22:05:29 +02:00
.gitignore chore: initial prototype 2025-05-03 22:05:29 +02:00
.gitlab-ci.yml chore: add CI to dogfood 2025-05-03 22:08:50 +02:00
flake.lock docs: add documentation 2025-06-02 13:34:59 +02:00
flake.nix docs: add documentation 2025-06-02 13:34:59 +02:00
go.mod chore: use git-like patch/diff in junit output 2025-05-11 17:40:13 +02:00
go.sum chore: use git-like patch/diff in junit output 2025-05-11 17:40:13 +02:00
package.nix fix(package): use filesets so nixtest doesnt get rebuilt all the time 2025-06-02 01:13:05 +02:00
README.md docs: add documentation 2025-06-02 13:34:59 +02:00

Nixtest

built with nix pipeline status License: MIT Latest Release Support me Docs

Flexible test runner for testing Nix code, written in Go.

Features

  • Snapshot, Unit (equal checks) and Script-Tests (unit tests with assertions you could say)
  • Supports testing against raw Nix code or derivation output
  • Simple and easy to read summary of test results
  • Junit report support (eg. for displaying the results in GitLab etc.)

Usage

See the docs.