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

fixed issue that happens when modifying only lines not covered by code-coverage #123

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bionda740
Copy link

We had an issue when modifying only the value of a constant in our source.
Since the modified line of code was not covered by code-coverage, and it was the only modified line, phpcov returned the following error:
'Unable to detect executable lines that were changed. Are you sure your --path-prefix is correct?'
I would propose to solve the problem by also counting the uncovered lines, and return the error only if there is actually no modified line, both covered and uncovered.

@bionda740 bionda740 changed the title not covered changed lines fixed issue that happens when modifying only lines not covered by code-coverage Oct 12, 2022
@Slamdunk
Copy link
Contributor

@sebastianbergmann can you review this please?

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