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 211252

Summary: Single tests run, but project test fails
Product: java Reporter: ulfzibis <ulfzibis>
Component: TestNGAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED WONTFIX    
Severity: normal CC: jungi
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows XP   
URL: https://github.com/cbeust/testng/issues/211
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 211246    
Bug Blocks:    

Description ulfzibis 2012-04-16 13:16:24 UTC
[ BUILD # : 201204100400 ]
[ JDK VERSION : 1.7 ]

Testing workaround from bug 211246:

- Test File java.util.AbstractCollectionTest
--> 16 tests passed (there are only 3)
- Test File testng.java.util.AbstractCollectionTest
--> 16 tests passed
- Test Project
--> 16 tests passed, 14 tests failed
Comment 1 Lukas Jungmann 2012-04-17 21:17:35 UTC
problem with 'java/util/AbstractCollectionTest' vs 'testng/java/util/AbstractCollectionTest'

workaround is to not differentiate classes only by prefix, such as 'testng' in this case - ie rename one of the files to 'AbstractCollection2Test'

fix is to be done in build-impl.xsl - check how 'union' of filesets is constructed
Comment 2 Lukas Jungmann 2012-04-19 21:32:02 UTC
actually this is a bug directly in testng, can not do much with it on the NB side (the price for the fix on NB side would be really high)