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!!!"
This commit is contained in:
ku-sourav 2020-10-02 23:17:02 +05:30 committed by GitHub
parent b976b5b3b1
commit a4588240e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: