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

Replace Boost.Test with Catch2 #110

Merged
merged 7 commits into from
Apr 5, 2018
Merged

Replace Boost.Test with Catch2 #110

merged 7 commits into from
Apr 5, 2018

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Apr 4, 2018

Replace Boost.Test with Catch2.

Step toward #70 and #86

@ax3l ax3l added tests install third party third party libraries that are shipped and/or linked labels Apr 4, 2018
@ax3l ax3l requested a review from C0nsultant April 4, 2018 13:37
@ax3l ax3l mentioned this pull request Apr 4, 2018
2 tasks
@ax3l ax3l changed the title Replace Boost.Test with Catch2 [WIP] Replace Boost.Test with Catch2 Apr 4, 2018
@ax3l ax3l changed the title [WIP] Replace Boost.Test with Catch2 Replace Boost.Test with Catch2 Apr 5, 2018
philsquared and others added 6 commits April 5, 2018 14:13
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")
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, thanks.

Copy link
Member

@C0nsultant C0nsultant left a 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.
@ax3l ax3l merged commit cf5f2c2 into openPMD:dev Apr 5, 2018
@ax3l ax3l deleted the topic-catch2 branch April 5, 2018 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install tests third party third party libraries that are shipped and/or linked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants