facebook / facebook/hhvm

Reported code coverage differs from what PHP/Xdebug reports

Open
#1,589 5 comments 1 reaction 0 assignees View on GitHub
php5 incompatibility
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

While working on code coverage support for PHPUnit on HHVM, I discovered that the reported code coverage differs from what Xdebug reports. This will probably not be the only difference between HHVM's and Xdebug's code coverage but it's the first I found.

To reproduce, simply run PHPUnit's `master` on the test suite of https://github.com/sebastianbergmann/money (`phpunit -c build`).

PHP and Xdebug report 100% code coverage:

![php](https://f.cloud.github.com/assets/25218/1946443/4cf8b274-8006-11e3-8a3c-3faa2bbebb38.png)

HHVM reports less than 100% code coverage:

![hhvm-1](https://f.cloud.github.com/assets/25218/1946444/5cd349f2-8006-11e3-8307-bbe68ba31759.png)

![hhvm-2](https://f.cloud.github.com/assets/25218/1946445/68ed38f6-8006-11e3-8638-a77bcbb9ca4d.png)

![hhvm-3](https://f.cloud.github.com/assets/25218/1946446/6eb5409e-8006-11e3-9ece-d70ce8badfef.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.