From 37d81bf7b9734b56b7ffa4e9ad59580d27a4627c Mon Sep 17 00:00:00 2001 From: Jarkko Saltiola Date: Sat, 2 Nov 2024 22:00:27 +0200 Subject: [PATCH] Update testing.md First paragraph had reference to possibly deprecated info. Second paragraph was definitely out of date looking the [current sources](https://github.com/phel-lang/phel-lang/blob/001699edd91c417c646d45b8ac46d3128de4a2d8/src/phel/test.phel#L327). Rewrote it also so it is at least slightly more correct and without typos while some improvement could be made in it's usage with REPL etc. --- content/documentation/testing.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/documentation/testing.md b/content/documentation/testing.md index 1be2f78..494a6ed 100644 --- a/content/documentation/testing.md +++ b/content/documentation/testing.md @@ -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) ```