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 258478

Summary: PHPUnit percentage passed does not match colored bar
Product: utilities Reporter: SoboLAN
Component: Test RunnerAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Proof of bug (1 image = 1000 words)

Description SoboLAN 2016-03-22 08:32:00 UTC
Created attachment 158960 [details]
Proof of bug (1 image = 1000 words)

When running PHPUnit tests, the "Test Results" window will report the outcome of the tests. This includes the percentage of tests passed together with a colored bar (progress bar) that fills with green and red depending on that percentage.

However, this behaviour seems to be broken in my case.

- When passing percentage is 0%, then it's fully red (this is OK)
- When passing percentage is 100%, then it's fully green (this is OK as well)
- When passing percentage is 0% < x < 100%, then it's fully red (NOT ok)

Apparently any value that is somewhere in the middle is incorrectly represented.

Please see screenshot.

Expected behaviour: the bar should be partially filled with green and red, based on the percentage

Actual behaviour: the bar is completely red.

Additional details about my set-up:

- Windows 7 64-bit
- Netbeans 8.1 (Build 201510222201)
- JRE 8u45
- PHPUnit plugin version: 0.23.1
- Theme changed using 
- Tests settings set through: project right click -> Properties -> Testing (add folders) -> PHPUnit -> use XML configuration. If details are needed about this phpunit.xml, please let me know.
Comment 1 SoboLAN 2016-05-25 15:46:07 UTC
Any news about this bug ? Can someone confirm/reproduce it ? Will it be fixed ?

Thank you.