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.
Using TestNG 5.8, With the 6.7 beta of Netbeans (maven support 4.1.2), I am not able to run test on a single file. I am obliged to test all the module. It tells me there is no test. Furthermore, it will be very great super and wonderfull if I will be able to launch one single test. Thanks alot.
could you attach a sample project? are you using the optional (alpha/beta) testng support? or only the default maven support?
It is very difficult to reproduce. Because sometimes it works. I try to find a receipe to make it always failed. I will attach a sample project.
Created attachment 81526 [details] Projects used to test
I play almost half an hour with the two projects : modify poms use Ctl-Tab to swith test use clean and sometimes it does not launch test. It looks like we lost the focus on the file but not.
http://hg.netbeans.org/main/rev/78383e7bdd6d the testng tests cannot be executed via compile on save execution, we had the relevant condition there to exclude them but the comparison method was wrong and didn't work. fixed. in 6.7 it can be workarounded by disabling CoS for tests
OK thanks ! turnaround seems to work with 6.7 RC1
Integrated into 'main-golden', will be available in build *200906110201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/78383e7bdd6d User: Milos Kleint <mkleint@netbeans.org> Log: #164368 wrong comparison method used to exclude testng based tests from compile on save ant based execution
v.
The fix has been ported into the release67_fixes repository. http://hg.netbeans.org/release67_fixes/rev/87393a2db829
Product Version: NetBeans IDE 6.7.1 RC (Build 200907162301) Java: 1.7.0-ea; Java HotSpot(TM) Client VM 16.0-b03 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Verified in 6.7.1 RC