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 217294 - Module tests are run multiple times when a suite is tested
Summary: Module tests are run multiple times when a suite is tested
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-23 11:15 UTC by pjdm
Modified: 2012-09-05 02:06 UTC (History)
1 user (show)

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 pjdm 2012-08-23 11:15:30 UTC
When running tests from a NetBeans suite, project tests are run more than once.

To reproduce:
1. Create a new NetBeans Platform Application project.
2. Create two new modules.
3. In each module, create a new TestNG Test Case.
4. In one of the modules, create a test method called testA in the test class.

    @Test
    public void testA()
    {
        assertTrue(true);
    }

5. In the other module, create two similar test methods called testB and testC.
6. Right-click the suite and select Test.

Three tests should be run: in no particular order, testA, testB, testC. However, depending on which modules the tests are in, either four or five tests are run. Cut testC from its test class and paste it in the same class as testA to see the alternative.

It appears that when a module's tests are run, the tests of previously tested modules are also run for each successive module.
Comment 1 Theofanis Oikonomou 2012-09-04 10:05:59 UTC
Fixed: http://hg.netbeans.org/core-main/rev/91bb5934410c
Comment 2 Quality Engineering 2012-09-05 02:06:29 UTC
Integrated into 'main-golden', will be available in build *201209050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/91bb5934410c
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #217294 - Module tests are run multiple times when a suite is tested