ANN: TestNG-J 0.1.0
java testing testng idea intellij
The other week I started my TestNG plugin for IntelliJ IDEA, and now, thanks to some antibile loving from Hani Suleiman we present to a plugin manager near you (under Tool Integration - TestNG-J):
Enjoy.
Note: The plugin is compiled under JDK 1.5, and includes only the JDK 1.5 version of TestNG.
Comments (6)
OK. Will do. I'm already on that list so I'll just watch there.
Hey Justin, thanks for the comments. There is a sort-of public subversion repository, but due to other reasons it's not really "public" yet, so I guess not really ;p
Any bugs you find, or issues, you could either report here on on the TestNG mailing list at googlegroups.This is fantastic. I've been debating writing a plugin for TestNG since that was one thing I've really missed from JUnit. But since you guys have already gotten most of it done, I won't bother. Is there a (public?) repo I can look at to play with the plugin should I find a bug? Or is it already part of the TestNG repo?
Cool... Now that you've got that working, want to take over the Ivy plugin? ;-)
Excellent!
I am using ItelliJ 5.0 + jdk1.4.2 + latest testng-J plugin(0.1.12). I can't get it working at all. I use one testng test class Test1 under 1.4 and it's parent class BaseTest, Modify original Assert to use Testng's Assert and got them compiled under jdk1.4.2. Now I went to IntelliJ "Edit configuration" and found TestNg tab and I add new testng entry with right class. I didn't bother to fill other option like test runner parameter and test parameters tab. It is by default in test class selected. I then apply the change and clicked to run this test. I got error: Can somebody help me to figure it out? Thanks. ===================================
C:\j2sdk1.4.2_02\bin\java -ea -Didea.launcher.port=7537 -Didea.launcher.bin.path=C:\IntelliJ-IDEA-5.0\bin -Dfile.encoding=windows-1252 -classpath "C:\j2sdk1.4.2_02\jre\lib\charsets.jar;C:\j2sdk1.4.2_02\jre\lib\jce.jar;C:\j2sdk1.4.2_02\jre\lib\jsse.jar;C:\j2sdk1.4.2_02\jre\lib\plugin.jar;C:\j2sdk1.4.2_02\jre\lib\rt.jar;C:\j2sdk1.4.2_02\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_02\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_02\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_02\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_02\jre\lib\ext\sunjce_provider.jar;D:\development\NSDI\war\public_html\WEB-INF\classes;D:\Java\jakarta-tomcat-5.5.9\common\lib\commons-el.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\jasper-compiler-jdt.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\jasper-compiler.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\jasper-runtime.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\jsp-api.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\naming-factory-dbcp.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\naming-factory.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\naming-resources.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\servlet-api.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\commons-beanutils-1.6.1.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\struts-1.1.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\jazncore.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\geospatial-4.2.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\commons-fileupload-1.0.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\jstl.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\holonics-utils-commons-1.3.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\commons-collections-2.1.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\pdkjava-9.0.4.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\castor-0.9.7.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\commons-validator-1.1.4.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\batik-1.6.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\ldapjclnt-10.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\bcprov-jdk14-1.30.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\commons-digester-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\log4j-1.2.8.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\commons-logging-1.0.3.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\pdkstruts-9.0.4.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\classes-12.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\ptlshare-10.0.4.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\xml-apis-1.0.b2.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\commons-lang-2.1.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\xerces-2.4.0.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwebrim-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwows-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwwms-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwcommon-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwsld-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwnet-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwgeom-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwwrs-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwims-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwfilter-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwwfs-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwcsw-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwssl-1.5.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\cwxmlgen-1.5.jar;D:\Java\TestNG-4.0\testng-4.0-jdk14.jar;/C:/Documents and Settings/dsun/.IntelliJIdea50/config/plugins/testngrunner/lib/testng-4.0-jdk14.jar;/C:/Documents and Settings/dsun/.IntelliJIdea50/config/plugins/testngrunner/lib/testngrunner.jar;C:\IntelliJ-IDEA-5.0\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.testng.remote.RemoteTestNG -port 6987 -sourcedir D:/Projects/Oracle_PDK/pdk/src;D:/development/NSDI/war/src; -testclass com.cubewerx.wrs.Test1 java.lang.AssertionError: Test wasn't set, maybe @Configuration methodSetUp() was never called expected:<true> but was:<false> at org.testng.Assert.fail(Assert.java:73) at org.testng.Assert.failNotEquals(Assert.java:345) at org.testng.Assert.assertTrue(Assert.java:28) at org.testng.Assert.assertNull(Assert.java:288) at com.cubewerx.wrs.BaseTest.run(BaseTest.java:111) at com.cubewerx.wrs.Test1.groupsOfGroupsWithCycle(Test1.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:352) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:509) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:90) at org.testng.TestRunner.privateRun(TestRunner.java:620) at org.testng.TestRunner.run(TestRunner.java:503) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:200) at org.testng.SuiteRunner.run(SuiteRunner.java:126) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86) java.lang.AssertionError: Test wasn't set, maybe @Configuration methodSetUp() was never called expected:<true> but was:<false> at org.testng.Assert.fail(Assert.java:73) at org.testng.Assert.failNotEquals(Assert.java:345) at org.testng.Assert.assertTrue(Assert.java:28) at org.testng.Assert.assertNull(Assert.java:288) at com.cubewerx.wrs.BaseTest.run(BaseTest.java:111) at com.cubewerx.wrs.Test1.groupsOfGroupsSimple(Test1.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:352) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:509) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:90) at org.testng.TestRunner.privateRun(TestRunner.java:620) at org.testng.TestRunner.run(TestRunner.java:503) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:200) at org.testng.SuiteRunner.run(SuiteRunner.java:126) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86) java.lang.AssertionError: Test wasn't set, maybe @Configuration methodSetUp() was never called expected:<true> but was:<false> at org.testng.Assert.fail(Assert.java:73) at org.testng.Assert.failNotEquals(Assert.java:345) at org.testng.Assert.assertTrue(Assert.java:28) at org.testng.Assert.assertNull(Assert.java:288) at com.cubewerx.wrs.BaseTest.run(BaseTest.java:111) at com.cubewerx.wrs.Test1.includedGroups(Test1.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:352) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:509) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:90) at org.testng.TestRunner.privateRun(TestRunner.java:620) at org.testng.TestRunner.run(TestRunner.java:503) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:200) at org.testng.SuiteRunner.run(SuiteRunner.java:126) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86) java.lang.AssertionError: Test wasn't set, maybe @Configuration methodSetUp() was never called expected:<true> but was:<false> at org.testng.Assert.fail(Assert.java:73) at org.testng.Assert.failNotEquals(Assert.java:345) at org.testng.Assert.assertTrue(Assert.java:28) at org.testng.Assert.assertNull(Assert.java:288) at com.cubewerx.wrs.BaseTest.run(BaseTest.java:111) at com.cubewerx.wrs.Test1.groupsOfGroupsWithIndirections(Test1.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:352) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:509) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:90) at org.testng.TestRunner.privateRun(TestRunner.java:620) at org.testng.TestRunner.run(TestRunner.java:503) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:200) at org.testng.SuiteRunner.run(SuiteRunner.java:126) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86) java.lang.AssertionError: Test wasn't set, maybe @Configuration methodSetUp() was never called expected:<true> but was:<false> at org.testng.Assert.fail(Assert.java:73) at org.testng.Assert.failNotEquals(Assert.java:345) at org.testng.Assert.assertTrue(Assert.java:28) at org.testng.Assert.assertNull(Assert.java:288) at com.cubewerx.wrs.BaseTest.run(BaseTest.java:111) at com.cubewerx.wrs.Test1.regexp(Test1.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:352) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:509) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:90) at org.testng.TestRunner.privateRun(TestRunner.java:620) at org.testng.TestRunner.run(TestRunner.java:503) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:200) at org.testng.SuiteRunner.run(SuiteRunner.java:126) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86) java.lang.AssertionError: Test wasn't set, maybe @Configuration methodSetUp() was never called expected:<true> but was:<false> at org.testng.Assert.fail(Assert.java:73) at org.testng.Assert.failNotEquals(Assert.java:345) at org.testng.Assert.assertTrue(Assert.java:28) at org.testng.Assert.assertNull(Assert.java:288) at com.cubewerx.wrs.BaseTest.run(BaseTest.java:111) at com.cubewerx.wrs.Test1.excludedGroups(Test1.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:352) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:509) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:90) at org.testng.TestRunner.privateRun(TestRunner.java:620) at org.testng.TestRunner.run(TestRunner.java:503) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:200) at org.testng.SuiteRunner.run(SuiteRunner.java:126) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86) =============================================== Suite for Command line test Total tests run: 7, Failures: 6, Skips: 0 =============================================== Process finished with exit code 0