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 10: Enter one-line summary
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by martin.d...@gmail.com, May 29, 2007
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_Test"
annotations="javadoc">
    <classes>
      <class
name="com.intuit.engine.efp.efe.agency.format.irs.payroll.ssa.SsaAckHelper_CNF_Test"/>
    </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





May 29, 2007
#1 martin.d...@gmail.com
Appologies for submitting without entering a one line summary. 
Sep 14, 2009
#2 mountain...@gmail.com
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!!! :)

Powered by Google Project Hosting