facebook / facebook/hhvm

Reported code coverage differs from what PHP/Xdebug reports

Ouverte
#1,589 5 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
php5 incompatibility
Langage dominant
C++
Étoiles
18.7k
Forks
3.1k
Merge moyen
1 h 47 min
PR mergées (30 j)
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)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.