-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit testing #241
Comments
There's now a simple unit test for FrequencyMeasurement in #242 (tests/FrequencyMeasurement). It runs with no arguments and exits with 0 on success and nonzero on failure. |
Catch2 is probably the simplest to get started with, at least in its current stable incarnation -- testcases are just funny looking free functions, with setup/teardown handled elegantly, and very little configuration needed, while still supporting rich assertion output. |
Proposal:
|
Top level meta-issue for setting up some kind of unit test framework. CTest may be worth using since it integrates well with CMake, but I'm open to other options.
The hard part of course is going to be figuring out what to test, refactoring code to be more testable, etc.
The text was updated successfully, but these errors were encountered: