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 UNSCOPED_INFO to prefix/disabled sections #1611

Merged
merged 2 commits into from
May 23, 2019

Conversation

cincodenada
Copy link
Contributor

@cincodenada cincodenada commented Apr 24, 2019

Description

The new UNSCOPED_INFO feature was only added for the default usage. This adds defines so that it works under #define CATCH_CONFIG_PREFIX_ALL and/or #define CATCH_CONFIG_DISABLE.

The X02-DisabledMacros.cpp is pretty thin and doesn't test individual macros, so only the CATCH_-prefixed modification is accounted for in tests. Expanding that test seemed out scope for this PR, but I'm happy to be the first if that's useful.

GitHub Issues

Amends #1522, which introduced UNSCOPED_INFO

@codecov
Copy link

codecov bot commented Apr 24, 2019

Codecov Report

Merging #1611 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1611   +/-   ##
=======================================
  Coverage   80.82%   80.82%           
=======================================
  Files         121      121           
  Lines        3420     3420           
=======================================
  Hits         2764     2764           
  Misses        656      656

@horenmar
Copy link
Member

Thanks for the fix. Also if you are willing, the tests could definitely use some expanding. There is always a trade-off in the amount of work that goes into them and apparently the X02 tests were on the wrong side.

@horenmar
Copy link
Member

horenmar commented May 1, 2019

Just so we are on the same page: should I merge this PR and wait for a new one, or leave this one open for the new tests?

@horenmar horenmar merged commit bd703dd into catchorg:master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants