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

Summary: Test result shows class as skipped even if some tests passed
Product: java Reporter: Leperous
Component: JUnitAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

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.