README: Getting started: split test examples into separate examples

This commit is contained in:
Anton-Latukha 2020-09-28 21:31:22 +03:00
parent 377902664b
commit ea770eab96
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41

View File

@ -21,10 +21,20 @@ cd hnix
nix-shell
cabal v2-configure --enable-tests
cabal v2-build
```
Default test pack:
```
cabal v2-test
# To run all of the tests, which takes up to a minute:
```
To run all of the tests, which takes up to a minute:
```
env ALL_TESTS=yes cabal v2-test
# To run only specific tests (see `tests/Main.hs` for a list)
```
To run only specific tests (see `tests/Main.hs` for a list)
```
env NIXPKGS_TESTS=yes PRETTY_TESTS=1 cabal v2-test
./dist/build/hnix/hnix --help
```