Skip to content

Collect coverage when no assertion is expected#5010

Closed
mvorisek wants to merge 1 commit intosebastianbergmann:8.5from
mvorisek:fix_coverage_for_doesnotperformassertion
Closed

Collect coverage when no assertion is expected#5010
mvorisek wants to merge 1 commit intosebastianbergmann:8.5from
mvorisek:fix_coverage_for_doesnotperformassertion

Conversation

@mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Jul 7, 2022

fixes sebastianbergmann/php-code-coverage#921 (comment)

when no assertion is expected - test is annotated with @doesNotPerformAssertions (or with php attribute) - coverage must be collected

the added condition matches the condition used a few lines below for reporting a risky test

🎉 UPDATE: It was actually fixed a yer later: b771002 and 262b0dc backported, thank you!

@sebastianbergmann
Copy link
Owner

Thank you for your contribution. I appreciate the time you invested in preparing this pull request. However, I have decided not to merge it.

@mvorisek

This comment was marked as outdated.

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.

2 participants