My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 3: Cannot run tests in "long" class names
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by marc.ge...@gmail.com, Nov 1, 2006
I just switched to TestNG 5.3 (from 5.1) running on Mac OS X 10.4

I have some tests in 
com.xyzz.abcdef.ejb.sb.product.insertionpoint.SimpleTest

The popup menu does not recognize the tests (greyed out 'Run as Test')
moving it to 

com.xyzz.abcdef.ejb.sb.insertionpoint.SimpleTest

enables the test. When I use an xml-file to point to that test and try to run it from within eclipse,
it skips all my test


Parser] Running:
  /Users/qwer/Documents/Projects/abcdef/build-1.0/dev/src/server/abcdef_facade/ngtests/
com/xyzz/abcdef/ejb/sb/product/insertionpoint/insertionPointSuite.xml

[RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@ec115b priority: 10
[TestNGClassFinder] SKIPPING CLASS class 
com.axzz.abcdef.ejb.sb.product.insertionpoint.SimpleTest
[RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@609c13 priority: 10
[TestNGClassFinder] SKIPPING CLASS class com.xyzz.abcdef.ejb.sb.product.NGTestDeleteProduct
[[SuiteRunner]] Created 2 TestRunners
[TestRunner] Running test Insertion Point Tests on 0  classes,  included groups:[] excluded 
groups:[]
[TestRunner] WILL BE RUN IN RANDOM ORDER:
[TestRunner] WILL BE RUN SEQUENTIALLY:
[TestRunner] ===
[TestRunner] Found 0 applicable methods

The test ran fine under TestNG 5.1 and still runs fine when invoked from ant.


Nov 1, 2006
#1 marc.ge...@gmail.com
The length of the path of the class has nothing to to with the problem I encounter. Please close this bug. I still 
cannot run some test from within eclipse but can run some others. The logging is not helping me much, but I'll 
try to find out what is really causing the problem.
Nov 1, 2006
#2 marc.ge...@gmail.com
Further testing shows that when I replace the @Test annotation with JDK 1.4-style annotation, that my test is 
ran. Specifying -version as argument to run the test gives me JDK 1.5, however, -verbose shows me that it loads 
all classes from testng-jdk14.jar, never from testng-jdk15.jar
Nov 2, 2006
#3 marc.ge...@gmail.com
After disabling TestNG plugin in eclipse, moving the testng 15 lib in the place of the 1.4 lib, and restarting 
eclipse, giving the option -help tells me that I can now choose between the two types of annotations. So I think I 
now finally have the 1.5 lib. But it still does not find my tests.

I give up
Nov 2, 2006
#4 marc.ge...@gmail.com
Sorry for keep coming back on this. I switched back to TestNG 5.1 eclipse plugin. I do have to switch on the 1.5 
compliance for letting my tests run from within eclipse. This is not possible with the 5.3 plugin, where I can only 
choose the annotation-style, but that fails to switch to JDK 1.5 annotations. 

Do I have to make another bug entry for this issue ?

Powered by Google Project Hosting