This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Code coverage collection does not work | ||
---|---|---|---|
Product: | php | Reporter: | Vitex |
Component: | PHPUnit | Assignee: | Tomas Mysik <tmysik> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | code coverage report in Clover XML |
Description
Vitex
2016-11-14 15:38:01 UTC
It works fine with PHPUnit 4.x but fails with PHPUnit 5.x. Thanks for catching that, I will try to fix it. Thanks for reporting. Aha, in my case, the PHPUnit 5.x says: Error: No whitelist configured, no code coverage will be generated Will investigate it. So, PHPUnit 5.x requires whitelisting for code coverage [1]. I will add a CLI parameter for it (I tested it with older versions of PHPUnit 4.7 and 3.7 and it should not break anything). Thanks. [1] https://phpunit.de/manual/current/en/code-coverage-analysis.html (In reply to Tomas Mysik from comment #3) > I tested it with older versions of PHPUnit 4.7 and 3.7 and it should not break anything. My bad, older versions complain about this parameter so it cannot be easily added. Lowering to P3 because it seems to me that the only thing NetBeans can do is to inform user that the coverage log was not found (user needs to set whitelist in her XML configuration). However, it does not seem to fix your original report - you apparently have whitelist defined in your XML configuration, right? However, I cannot reproduce it; could you please try to create a sample project and attach it here? Thanks. Info message added. As I wrote, this will not help in your case but since I cannot reproduce it, I cannot do much, sorry :/ Thanks. http://hg.netbeans.org/web-main/rev/b27d497872f5 I just verified that the message appears. Integrated into 'main-silver', will be available in build *201611160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b27d497872f5 User: Tomas Mysik <tmysik@netbeans.org> Log: #268976 - Code coverage collection does not work Transplanted to the releases repo branch release82: http://hg.netbeans.org/releases/rev/9c7b467c6fe3 Thanks. |