-
Notifications
You must be signed in to change notification settings - Fork 51
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
Replace Boost.Test with Catch2 #110
Conversation
Also shipped internally (but not needed during runtime, so not installed).
If testing is disabled in CMake, there is no need to - require Catch2 - build the tests - register `make test`
@@ -563,6 +579,7 @@ message("") | |||
message(" Additionally installed third party libraries:") | |||
invertBoolean(openPMD_USE_INTERNAL_VARIANT openPMD_HAVE_EXTERNAL_VARIANT) | |||
message(" MPark.Variant: ${openPMD_HAVE_EXTERNAL_VARIANT}") | |||
message(" Catch2: OFF") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this do the same inversion as the lines above with openPMD_USE_INTERNAL_CATCH
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question! No, Catch2 will not be installed on make install
simply because it is only needed at build-time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took me a while to get the intent of the messages.
That is a really elegant and clever solution and makes the Variant output really useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently only a change in dependencies, but Catch2 will allow for more readable and maintainable tests.
Use sane defaults to reduce noise, keep ignoring C++98 compat.
Replace Boost.Test with Catch2.
Step toward #70 and #86