Skip to content
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

split "examples" into mini-examples and/or (unit) tests #24

Open
evaleev opened this issue Feb 28, 2020 · 1 comment
Open

split "examples" into mini-examples and/or (unit) tests #24

evaleev opened this issue Feb 28, 2020 · 1 comment
Assignees

Comments

@evaleev
Copy link
Contributor

evaleev commented Feb 28, 2020

most examples are big and messy. Each example should become a proper tested standalone example (with matching "tutorial" in the docs walking through it), or a test (some smaller examples can be turned into proper unit tests).

use catch2

@evaleev evaleev self-assigned this Feb 28, 2020
@evaleev evaleev added this to the minimal documentation milestone Feb 28, 2020
@evaleev
Copy link
Contributor Author

evaleev commented Apr 4, 2020

@robertjharrison now with the use of FetchContent module getting Catch2 is trivial enough to be part of the official CMake docs:

https://cmake.org/cmake/help/v3.17/module/FetchContent.html#examples

target_link_libraries(unit-tests-ttg Catch2::Catch2) is all that's needed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants