README: Getting started: put separate test examples into a list

This commit is contained in:
Anton-Latukha 2020-09-28 21:36:12 +03:00
parent ea770eab96
commit 556835a5b6
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 14 additions and 13 deletions

View File

@ -23,21 +23,22 @@ cabal v2-configure --enable-tests
cabal v2-build
```
Default test pack:
```
cabal v2-test
```
Run testing:
* Default:
```
cabal v2-test
```
To run all of the tests, which takes up to a minute:
```
env ALL_TESTS=yes cabal v2-test
```
* All:
```
env ALL_TESTS=yes cabal v2-test
```
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
```
* Selected (list of tests is in `tests/Main.hs`):
```
env NIXPKGS_TESTS=yes PRETTY_TESTS=1 cabal v2-test
./dist/build/hnix/hnix --help
```
## Using the REPL