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 - PHPUnit percentage passed does not match colored bar
Summary: PHPUnit percentage passed does not match colored bar
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Test Runner (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-22 08:32 UTC by SoboLAN
Modified: 2016-05-25 15:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proof of bug (1 image = 1000 words) (16.32 KB, image/png)
2016-03-22 08:32 UTC, SoboLAN
Details

Note You need to log in before you can comment on or make changes to this bug.
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.