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.

Bug 192434 - code coverage doesn't change background color of tested file
Summary: code coverage doesn't change background color of tested file
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 7.0
Hardware: PC Other
: P3 normal with 4 votes (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 19:52 UTC by nbphpuser
Modified: 2011-06-09 14:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nbphpuser 2010-11-24 19:52:20 UTC
Hello,

I'm using PHPUnit 3.5.3 and can't see code coverage in editor window.
"Code Coverage Report" window shows how much percent of files is covered, but in the tested file itself background color is still white.

Output window shows:
PHPUnit 3.5.3 by Sebastian Bergmann.

............

Time: 1 second, Memory: 5.00Mb

 [30;42m [2KOK (12 tests, 12 assertions)
 [0m [2K
Writing code coverage data to XML file, this may take a moment.




If I do it on commandline, the .xml file is generated

phpunit --bootstrap bootstrap.php --coverage-clover ./log/coverageclov.xml ./lib

As one can see PHPUnit changed switch '--coverage-xml' to
'--coverage-clover' for generating xml files. May be is this the
issue?

see also http://netbeans.org/bugzilla/show_bug.cgi?id=190725
Comment 1 Covex 2010-11-25 09:35:01 UTC
I installed 3 versions of NetBeans IDE: 7.0M2, 7.0Beta, 7.0Dev

After checking "Code Coverage > Collect and Dislpay Code Coverage", Editor Bar was visible in 7.0M2 only.

After fixing PHP_CodeCoverage_Report_Clover class as it described here: http://netbeans.org/bugzilla/show_bug.cgi?id=190725#c6 code lines of tested file was highlighted as expected in 7.0M2 only too.
Comment 2 royrogers 2011-02-01 08:56:08 UTC
After correcting Bug 190725 - AssertionError at org.netbeans.modules.php.project.ui.codecoverage.CoverageVO.setPhpUnitVersion 

code coverage "editor bar" and colors don't show up on tested file
Comment 3 Tomas Mysik 2011-06-03 10:21:34 UTC
Batch reassigning.
Comment 4 Tomas Mysik 2011-06-09 14:21:04 UTC
I just tried it in the development version of NetBeans and it works for me. If the problem still exists for you, feel free to reopen this issue but please provide exact steps to reproduce (also verify that you are using the development version of NetBeans [1]).

Thanks.
[1] http://bertram.netbeans.org/hudson/job/PHP-build/

Product Version: NetBeans IDE Dev (Build 20110606-040ca04e81f8)
Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02
System: Linux version 2.6.38-8-generic running on amd64; UTF-8; cs_CZ (nb)