docs(test): using cmake directly (without make) #22781

This commit is contained in:
dundargoc 2023-03-25 23:33:42 +07:00 committed by GitHub
parent dc5a433025
commit 74f05a152d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,14 +149,26 @@ To run a *specific* unit test:
TEST_FILE=test/unit/foo.lua make unittest TEST_FILE=test/unit/foo.lua make unittest
or
cmake -E env "TEST_FILE=test/unit/foo.lua" cmake --build build --target unittest
To run a *specific* functional test: To run a *specific* functional test:
TEST_FILE=test/functional/foo.lua make functionaltest TEST_FILE=test/functional/foo.lua make functionaltest
or
cmake -E env "TEST_FILE=test/functional/foo.lua" cmake --build build --target functionaltest
To *repeat* a test: To *repeat* a test:
BUSTED_ARGS="--repeat=100 --no-keep-going" TEST_FILE=test/functional/foo_spec.lua make functionaltest BUSTED_ARGS="--repeat=100 --no-keep-going" TEST_FILE=test/functional/foo_spec.lua make functionaltest
or
cmake -E env "TEST_FILE=test/functional/foo_spec.lua" cmake -E env BUSTED_ARGS="--repeat=100 --no-keep-going" cmake --build build --target functionaltest
### Filter by tag ### Filter by tag
Tests can be "tagged" by adding `#` before a token in the test description. Tests can be "tagged" by adding `#` before a token in the test description.