lanbeier / testng-eclipse

Automatically exported from code.google.com/p/testng-eclipse
0 stars 0 forks source link

Enter one-line summary #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run any testng test inside eclipse. e.g. Right-click on class in the
Hierarchy View, select Run As TestNG Test
2. The testng test suite runs but no tests actually get executed. The
result in the console is "Total tests run: 0, Failures: 0, Skips: 0"

What is the expected output? What do you see instead?
It should run the tests in the class but the tests get ignored.

What version of the product are you using? On what operating system?
linux (Ubuntu 7.04) / eclipse 3.2.2 / testng plugin 5.5.0.1 / sun jdk 1.5.0_08

Please provide any additional information below.
I have figured out why it isn't seeing the tests. It generates the
temporary test suite xml file - temp-testng-customsuite.xml
which contains this:
<suite name="agency">
  <test verbose="2"
name="com.intuit.engine.efp.efe.agency.format.irs.payroll.ssa.SsaAckHelper_CNF_T
est"
annotations="javadoc">
    <classes>
      <class
name="com.intuit.engine.efp.efe.agency.format.irs.payroll.ssa.SsaAckHelper_CNF_T
est"/>
    </classes>
  </test>
</suite>

Note the annotations="javadoc" attribute. If I manually remove this from
the xml and then execute that xml file, it will work. So the problem is
that when it generates the xml file it has this attribute.

I don't know why it thinks I am using the javadoc style annotations. I am
using the standard jdk1.5 annotations. I have checked all the preferences
but I cannot see where I can tell it to use 1.5 annotations. Also, up until
recently my dev environment was on a WindowsXP box, the plugin worked fine
with eclipse in that environment. So maybe its a linux only bug.

How does the plugin detect the jvm? The default jvm at the OS level is a 
1.4 jvm. 
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)

But I do not reference this jvm from inside my eclipse environment. My
eclipse environment is running on sun jdk 1.5 and my java compiler for the
entire environment is the same jdk.

Maybe the plugin thinks I'm using 1.4 becuase it incorrectly sees the 1.4
jvm on the system level path?

thanks,
Martin

Original issue reported on code.google.com by martin.d...@gmail.com on 29 May 2007 at 6:16

GoogleCodeExporter commented 9 years ago
Appologies for submitting without entering a one line summary. 

Original comment by martin.d...@gmail.com on 29 May 2007 at 6:17

GoogleCodeExporter commented 9 years ago
Martin I had this problem with Galileo because I had two projects on the same 
build 
path, one of which had an incorrect classpath entry. When I ran a suite with 
the 
TestNG plugin, "Total tests run: 0, Failures: 0, Skips: 0" immediately 
appeared. 

Once the incorrect classpath entries were corrected, business as usual. The 
problem 
was Galileo was not correctly reporting the error. I had to downgrade to 
Ganaymede 
and run the same test to get more info. Easy from there. HTH!

Not sure if related but wanted to share my experience. Noticed a few plugin 
defects 
on the board, check your classpath!!! :)

Original comment by mountain...@gmail.com on 14 Sep 2009 at 8:52