Flexible test runner for Nix code written in Go. https://nixtest.projects.tf
Find a file
2025-06-14 15:16:25 +02:00
cmd/nixtest refactor: split into packages and add tests 2025-06-03 12:05:16 +02:00
docs docs: update cli help 2025-06-08 20:55:36 +02:00
internal chore(cli): handle help command manually to exit 0 2025-06-13 15:25:08 +02:00
lib chore(testHelpers): remove string context in toJsonFile 2025-06-14 15:16:25 +02:00
snapshots feat: add support for pretty/nix format 2025-05-10 21:55:08 +02:00
tests chore: add more helpers & add pos to test suite 2025-06-13 20:47:26 +02:00
.envrc chore: initial prototype 2025-05-03 22:05:29 +02:00
.gitignore refactor: split into packages and add tests 2025-06-03 12:05:16 +02:00
.gitlab-ci.yml chore: add CI to dogfood 2025-05-03 22:08:50 +02:00
flake.lock refactor: split into packages and add tests 2025-06-03 12:05:16 +02:00
flake.nix ci: remove flakeModule test job 2025-06-13 15:48:19 +02:00
go.mod refactor: split into packages and add tests 2025-06-03 12:05:16 +02:00
go.sum refactor: split into packages and add tests 2025-06-03 12:05:16 +02:00
LICENSE.md chore: add LICENSE 2025-06-03 21:45:50 +02:00
package.nix refactor: split into packages and add tests 2025-06-03 12:05:16 +02:00
README.md docs: add images & fix typo 2025-06-08 20:52:20 +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.

asciicast

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 screenshot
  • Junit report support (eg. for displaying the results in GitLab etc.) screenshot

Usage

See the docs.