From a4588240e9104787fa8e28471693cabc109db94a Mon Sep 17 00:00:00 2001 From: ku-sourav <53139855+ku-sourav@users.noreply.github.com> Date: Fri, 2 Oct 2020 23:17:02 +0530 Subject: [PATCH] Add build instruction for running tests (#690) Added build arguments to pass to cmake for running tests. If these options are not passed during cmake build and someone tries to run test, it will throw error "No tests were found!!!" --- CONTRIBUTING.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f271cd36d..60cbc2100 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -120,7 +120,11 @@ cd build cmake -Duse_default_uuid=ON .. cmake --build . ``` - +If you want to run tests also, generate build files using below command and then build. +```sh +cmake -DBUILD_TESTING=ON -DBUILD_CURL_TRANSPORT=ON .. +cmake --build . +``` #### Testing the project Tests are executed via the `ctest` command included with CMake. From the repo root, run: