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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,13 @@ From the root of RoverFlake2:
39
39
40
40
If you get an error... panic, scream, and hurl insults at your computer. Then look at common issues and ask for help in the discord.
41
41
42
+
### Unit Tests
43
+
We use Catch2 for CPP unit tests. To keep it simple, we don't integrate with colcon tests, we have a seperate CMakeLists.txt and Makefile at the root, to handle all unit tests.
44
+
To build and run tests: (the -j16 is just to compile faster by specifying how many cores to use)
45
+
> `make -j16 test`
46
+
To add tests, open up the CMakeLists.txt and manually add paths to test files. Follow the comments within the file.
47
+
Catch2 is powerful, lightweight, and easy to use. It has a lot of built in macros to help with testing but even just the basics is enough to get by.
0 commit comments