You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,20 @@ to change without warning. In particular, using Boost.Log macros such as
97
97
`BOOST_LOG_TRIVIAL` or `BOOST_LOG_SEV` is undefined behavior which will likely
98
98
fail to output log messages.
99
99
100
+
## Running Tests
101
+
Tests for the SDK are located in `src/viam/sdk/tests`. The CMakeLists.txt file in that directory defines how to build them. When the SDK is built, the test executables are placed in the test folder within your specified build directory (e.g., `build`, if you followed the instructions in [`BUILDING.md`](https://github.com/viamrobotics/viam-cpp-sdk/blob/main/BUILDING.md)). The test executable files can be run individually. To run the entire test suite at once, navigate to the `tests` folder in your build directory and run:
102
+
```
103
+
ctest
104
+
```
105
+
Or to avoid navigating all the way to the folder you can specify the test directory, for example:
106
+
```
107
+
ctest --test-dir build/src/viam/sdk/tests/
108
+
```
109
+
Additionally, for more useful ctest options explore:
0 commit comments