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

F!! Remove Catch1 support and add catch2 prefix to all #includes for catch.hpp #64

Merged
merged 1 commit into from
Jan 1, 2020

Conversation

dheater
Copy link
Contributor

@dheater dheater commented Dec 27, 2019

Closes #62

WARNING: This PR removes support for the Catch 1 unit test framework. See #62 for discussion.

Per the current maintainer for Catch2

"I strongly recommend going with #include "catch2/catch.hpp"

Adding catch2 to the path allows ApprovalTests.cpp to work well with the way Catch2 exports target include directories using CMake.

The drawback is that there is no simple/clean way to maintain support for Catch 1 without breaking compatibility. Catch 1 is maintained to support C++98. Both ApprovalTests.cpp and Catch2 depend on features of C++11

The following post describes the changes from Catch 1 to Catch 2: https://levelofindirection.com/blog/catch2-released.html
Theses release notes outline the breaking changes from Catch 1 to Catch 2: https://github.com/catchorg/Catch2/releases/tag/v2.0.1

@claremacrae claremacrae merged commit 533dd68 into approvals:master Jan 1, 2020
@dheater dheater deleted the 62-catch2-path branch January 1, 2020 21:02
@claremacrae claremacrae added this to the vNext release milestone Jan 5, 2020
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

Successfully merging this pull request may close these issues.

Change Catch2 includes to catch2/catch.hpp
2 participants