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:
parent
b976b5b3b1
commit
a4588240e9
@ -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:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user