Mark Derricutt's Disturbing Thoughts

ANN: TestNG-J 0.1.0

posted Friday, 22 July 2005
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.

tags:          

links: digg this    del.icio.us    technorati    reddit




1. Thierry left...
Saturday, 23 July 2005 2:05 am :: http://janaudy.com/

Excellent!


2. Jason Carreira left...
Saturday, 23 July 2005 8:07 am :: http://jroller.com/page/jcarreira

Cool... Now that you've got that working, want to take over the Ivy plugin? ;-)


3. Justin Lee left...
Sunday, 24 July 2005 3:36 pm :: http://www.antwerkz.com

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?


4. Mark Derricutt left...
Sunday, 24 July 2005 4:05 pm

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.


5. Justin Lee left...
Monday, 25 July 2005 8:49 am :: http://www.antwerkz.com

OK. Will do. I'm already on that list so I'll just watch there.


6. jingyu bai left...
Thursday, 10 November 2005 3:12 am

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:\j 2sdk1.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:\j2sd k1.4.2_02\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_02\jre\lib\ext\localedata.j ar;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\common s-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-t omcat-5.5.9\common\lib\jasper-runtime.jar;D:\Java\jakarta-tomcat-5.5.9\comm on\lib\jsp-api.jar;D:\Java\jakarta-tomcat-5.5.9\common\lib\naming-factory-d bcp.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-I NF\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\jazn core.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\NS DI\war\public_html\WEB-INF\lib\holonics-utils-commons-1.3.jar;D:\developmen t\NSDI\war\public_html\WEB-INF\lib\commons-collections-2.1.jar;D:\developme nt\NSDI\war\public_html\WEB-INF\lib\pdkjava-9.0.4.jar;D:\development\NSDI\w ar\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\bcpro v-jdk14-1.30.jar;D:\development\NSDI\war\public_html\WEB-INF\lib\commons-di gester-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.j ar;D:\development\NSDI\war\public_html\WEB-INF\lib\pdkstruts-9.0.4.jar;D:\d evelopment\NSDI\war\public_html\WEB-INF\lib\classes-12.jar;D:\development\N SDI\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\li b\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:\devel opment\NSDI\war\public_html\WEB-INF\lib\cwcommon-1.5.jar;D:\development\NSD I\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:\deve lopment\NSDI\war\public_html\WEB-INF\lib\cwfilter-1.5.jar;D:\development\NS DI\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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.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