From 752e83ae10c8f043dc88beb344f13c2913a75a63 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 14 Feb 2023 14:40:57 +1300 Subject: [PATCH] docs: Explain how to run specific tests --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index cf2f92f..4c6b3da 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,12 @@ To list test names: nix eval --impure --expr 'let pkgs = import {}; in pkgs.lib.attrNames (import ./tests/default.nix {})' ``` +To run specific tests, add `--attr NAME` to the `nix-build` command above. For example, to run the `bcrypt` and `jq` tests: + +```bash +nix-build --attr bcrypt --attr jq --keep-going --show-trace tests/default.nix +``` + ## Contact We have a Matrix room at [#poetry2nix:blad.is](https://matrix.to/#/#poetry2nix:blad.is).