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 marks lines untested which are executed |
Product: |
python
|
Reporter: |
Tenzer |
Component: |
Testing | Assignee: |
Torbjorn Norbye <tor> |
Status: |
CLOSED
WONTFIX
|
|
|
Severity: |
normal
|
CC: |
Jenselme
|
Priority: |
P3
|
|
|
Version: |
6.x | |
|
Hardware: |
PC | |
|
OS: |
Windows 7 | |
|
Issue Type:
|
DEFECT
|
Exception Reporter:
|
|
Attachments: |
Screenshot showing the bug
|
Created attachment 101904 [details] Screenshot showing the bug When I do check code coverage and it comes to a simple if / else statement, it always marks the "else:" line red, even though the lines executed in the else section are green. That should mean that the "else:" line was executed, otherwise Python wouldn't have reached those lines. See the attached screenshot, it was tested with a basic unit test of: self.assertTrue(test_func(True)) self.assertFalse(test_func(False)) I have not tested on other platforms that Windows 7, but I presume it is cross platform. I have neither tested with 6.10, I could do that if requested.