Skip to content

Commit

Permalink
Merge pull request #89 from jasalt/patch-3
Browse files Browse the repository at this point in the history
Update testing.md
  • Loading branch information
Chemaclass authored Nov 2, 2024
2 parents 5069ee3 + 37d81bf commit 8960eed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/documentation/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ Test can be defined by using the `deftest` macro. This macro is like a function

## Running tests

Tests can be run using the `./vendor/bin/phel test` command. Therefore, the `test` configuration entry must be set (see [Configuration](/documentation/configuration/)).
Tests can be run using the `./vendor/bin/phel test` command. Tests are looked up recursively in all directories set by [setTestDirs](/documentation/configuration/#testdirs) configuration option which defaults to `tests/`.

I can use want to run the test manually on your own, the `run-tests` function can be used. As arguments, it takes a list of namespaces that should be tested.
If you want to run the test manually, the `run-tests` function can be used. As arguments, it takes a map of options (that can be empty) and one or more namespaces that should be tested.

```phel
(run-tests 'my\ns\a 'my\ns\b)
(run-tests {} 'my\ns\a 'my\ns\b)
```

0 comments on commit 8960eed

Please sign in to comment.