From 74f05a152db1a6e5fc1e02fd8fbe61cf79e5aa59 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:33:42 +0700 Subject: [PATCH] docs(test): using cmake directly (without make) #22781 --- test/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/README.md b/test/README.md index d8d918eb61..65a5ae7912 100644 --- a/test/README.md +++ b/test/README.md @@ -149,14 +149,26 @@ To run a *specific* unit test: 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: 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: 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 Tests can be "tagged" by adding `#` before a token in the test description.