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 269228 - Test result shows class as skipped even if some tests passed
Summary: Test result shows class as skipped even if some tests passed
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.2
Hardware: PC Other
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-04 19:43 UTC by Leperous
Modified: 2016-12-04 19:43 UTC (History)
0 users

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 Leperous 2016-12-04 19:43:52 UTC
If I run tests for this class:

public class Tests {

    @Test
    @Ignore
    public void skip() {
    }

    @Test
    public void run() {
    }

}

Netbeans will report the Tests class as being skipped, even though the "run" test was run and it passed. It implies that all tests were skipped, which is incorrect.

It should report "passed" if there are greater than 0 passed tests and zero failed tests.