Skip to content

Undefined index during merge #621

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

Merged
merged 2 commits into from
May 22, 2018

Conversation

dekker-m
Copy link
Contributor

  • Fixed undefined index in merge() method (See Undefined index during code coverage merge #619 )
  • Removed code from merge() to yield correct merge results
  • Added test case for merging coverage files in reverse order (to prevent undefined index again)
  • Changed merge test cases to assert against the expected output from a single coverage run, instead of the currently "bugged" result.

* Removed code from merge() to yield correct merge results
* Added test case for merging coverage files in reverse order (to prevent undefined index again)
* Changed merge test cases to assert against the expected output from a single coverage run, instead of the currently "bugged" result.
@dekker-m
Copy link
Contributor Author

I've just run this against our projects, but the results still don't seem to be correctly. The test cases for php-code-coverage don't seem to cover all edge cases well. I'll check if I can find some of those edge cases within our test data/projects.

@dekker-m
Copy link
Contributor Author

I've been debugging some more tonight. The difference between running test suits in single run or spread over multiple processes are minimal now (< 0.3%). However, the results still don't seem to exactly match. Dead code is merged correctly, multiple test cases covering the same line merge correctly, however there still seems to be an issue with not executed test lines and lines which will never be executed.

I'll let you know once I've figured out some more.

@dekker-m
Copy link
Contributor Author

The latest commit should do the trick, the last few difference were caused by a setting in Codeception

@sebastianbergmann sebastianbergmann merged commit 8f59fd1 into sebastianbergmann:master May 22, 2018
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