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

Add deprecation warning in ParseAndCatchTests #2120

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

NeroBurner
Copy link
Contributor

Parsing C++ with regex in CMake is error prone and regularly leads to silently
dropped (not run) test cases.

Going forward the function catch_discover_tests from contrib/CMake.cmake
should be used.

For more information see #2092 (comment)

@codecov
Copy link

codecov bot commented Dec 17, 2020

Codecov Report

Merging #2120 (0107383) into v2.x (2375a7f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             v2.x    #2120   +/-   ##
=======================================
  Coverage   88.79%   88.79%           
=======================================
  Files         138      138           
  Lines        5683     5683           
=======================================
  Hits         5046     5046           
  Misses        637      637           

@horenmar
Copy link
Member

This should also be explicitly written in the cmake integration docs.

@norbertwenzel
Copy link
Contributor

@horenmar Do we need to document this also in the deprecations information or should that only contain changes in Catch directly and not in the CMake integration?

Copy link
Contributor Author

@NeroBurner NeroBurner left a comment

Choose a reason for hiding this comment

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

LGTM thx

@horenmar
Copy link
Member

@norbertwenzel It should be there as well.

@horenmar horenmar added Extras Touches utility scripts outside of Catch2 proper, e.g. CMake integration. Documentation labels Dec 18, 2020
@norbertwenzel
Copy link
Contributor

Ok, I think I have everything covered in the documentation now. Let me know should there be something missing still.

@horenmar
Copy link
Member

lgtm. Autorebase and the PR is ready to be merged.

@norbertwenzel norbertwenzel force-pushed the deprecate_ParseAndAddCatchTests branch from 7b2ff07 to a95a5ff Compare December 20, 2020 12:10
Parsing C++ with regex in CMake is error prone and regularly leads to silently
dropped (not run) test cases.

Going forward the function `catch_discover_tests` from `contrib/CMake.cmake`
should be used.

For more information see catchorg#2092 (comment)
@NeroBurner NeroBurner force-pushed the deprecate_ParseAndAddCatchTests branch from a95a5ff to 0107383 Compare December 21, 2020 09:23
@NeroBurner
Copy link
Contributor Author

@norbertwenzel did squash the commits, now rebased on current v2.x branch

@horenmar horenmar merged commit 18ab353 into catchorg:v2.x Dec 21, 2020
@NeroBurner NeroBurner deleted the deprecate_ParseAndAddCatchTests branch December 21, 2020 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Extras Touches utility scripts outside of Catch2 proper, e.g. CMake integration.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants