You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kavita Tippanna <ka...@andale.com> on 2004/07/16 12:03:54 UTC

HTML report problem with junitreport task.

Hi all,

We use ant1.6.1 & j2sdk1.4.2. I have a problem with generating html reports
with junitreport task.

 Problem goes like this,

"when I run my junit report task it runs fine without any errors but I do
not see any entries found in html reports produced. "
*It says tests '0'  Errors '0'  &  failures '0' & success rate 'Nan' where
as I have some tests & are passing. 
*Test-testcasename.xml is generated with proper entries. junit.jar is
included  in ANT_HOME/lib.
* Other necessary jars I could find in the path ANT_HOME/lib as they come
with ant 1.6.1.

My task is very simple which is as below..

<target name="report" depends="init" description="runs tests & generates the
html reports">
   <junit  haltonfailure="false" printsummary="withOutAndErr">
      <classpath refid="compile.classpath"/>
      <formatter type="xml"/>
      <test
name="test.vhub.lister.services.listerflows.OneStepListerFlowsTest"
todir="./reports"/>
   </junit>
   <junitreport todir="./reports">
      <fileset dir="./reports" includes="Test-*.xml"/>
      <report format="noframes" todir="./reports/html"/>
   </junitreport>
</target>

When i run the task with -verbose mode every thing looks fine. But when run
with -debug mode I could notice some "Could not load class" statements which
I'm pasting below with the junit/junitreport task outputs.

    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 42.265 sec
    [junit] Output:
    [junit] Running
Test->test.vhub.lister.services.listerflows.OneStepListerFlowsTest.testOneSt
epListerSaveFlow()
    [junit] in Create New Id.........
    [junit] Deleting Ad with ID : 741933


Could not load a dependent class
(com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (org/apache/commons/net/SocketClient) for
type rexec
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for
type cvsversion
Could not load a dependent class (com/starbase/starteam/Item) for type
stlist
Could not load a dependent class (org/apache/commons/net/SocketClient) for
type telnet
Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type
ftp
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckin
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckout
fileset: Setup scanner in dir C:\kavitat\home\tests\reports with patternSet{
includes: [Test-*.xml] excludes: [] }
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 250ms

 am i missing something?? I tried working with lower versions ant too &
ended with same problem. Please guide me as I'm new to ant. 

Thanks in advance.

-Kavita.


------------------------------------------
Andale Information Technologies
Kavita Tippanna
Associate QA - White Box Engineer
kavitat@andale.com <ma...@andale.com>
Andale Information Technologies
II nd Block, 4th floor
Prestige Blue Chip Software Park
No 9, Hosur Road
Bangalore
tel: 080-51114012
------------------------------------------
Want a signature like this? <http://www.plaxo.com/signature>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: HTML report problem with junitreport task.

Posted by "Mani G. Iyer" <iy...@rcn.com>.
In your reports directory, what .xml files do you see?  

Mani


-----Original Message-----
From: Kavita Tippanna [mailto:kavitat@andale.com] 
Sent: Friday, July 16, 2004 6:04 AM
To: 'user@ant.apache.org'
Subject: HTML report problem with junitreport task.

Hi all,

We use ant1.6.1 & j2sdk1.4.2. I have a problem with generating html reports
with junitreport task.

 Problem goes like this,

"when I run my junit report task it runs fine without any errors but I do
not see any entries found in html reports produced. "
*It says tests '0'  Errors '0'  &  failures '0' & success rate 'Nan' where
as I have some tests & are passing. 
*Test-testcasename.xml is generated with proper entries. junit.jar is
included  in ANT_HOME/lib.
* Other necessary jars I could find in the path ANT_HOME/lib as they come
with ant 1.6.1.

My task is very simple which is as below..

<target name="report" depends="init" description="runs tests & generates the
html reports">
   <junit  haltonfailure="false" printsummary="withOutAndErr">
      <classpath refid="compile.classpath"/>
      <formatter type="xml"/>
      <test
name="test.vhub.lister.services.listerflows.OneStepListerFlowsTest"
todir="./reports"/>
   </junit>
   <junitreport todir="./reports">
      <fileset dir="./reports" includes="Test-*.xml"/>
      <report format="noframes" todir="./reports/html"/>
   </junitreport>
</target>

When i run the task with -verbose mode every thing looks fine. But when run
with -debug mode I could notice some "Could not load class" statements which
I'm pasting below with the junit/junitreport task outputs.

    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 42.265 sec
    [junit] Output:
    [junit] Running
Test->test.vhub.lister.services.listerflows.OneStepListerFlowsTest.testOneSt
epListerSaveFlow()
    [junit] in Create New Id.........
    [junit] Deleting Ad with ID : 741933


Could not load a dependent class
(com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (org/apache/commons/net/SocketClient) for
type rexec
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for
type cvsversion
Could not load a dependent class (com/starbase/starteam/Item) for type
stlist
Could not load a dependent class (org/apache/commons/net/SocketClient) for
type telnet
Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type
ftp
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckin
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckout
fileset: Setup scanner in dir C:\kavitat\home\tests\reports with patternSet{
includes: [Test-*.xml] excludes: [] }
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 250ms

 am i missing something?? I tried working with lower versions ant too &
ended with same problem. Please guide me as I'm new to ant. 

Thanks in advance.

-Kavita.


------------------------------------------
Andale Information Technologies
Kavita Tippanna
Associate QA - White Box Engineer
kavitat@andale.com <ma...@andale.com>
Andale Information Technologies
II nd Block, 4th floor
Prestige Blue Chip Software Park
No 9, Hosur Road
Bangalore
tel: 080-51114012
------------------------------------------
Want a signature like this? <http://www.plaxo.com/signature>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org