Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

how to change testnames in junitreport?

NOFXer

2008-01-18

Replies: Find Java Web Hosting

Author LoginPost Reply

I have the following problem. I'm doing JUnit tests with only one Testclass
but with different parameters. So when I generate the JUnit reports all
Tests have of course the same name.
So I would have:

Classes
ExampleTest
ExampleTest
ExampleTest

I attached a variable to the XML files so they won't get overwritten. If I
look at the properties of the testreports I could distinguish them, but I
want to see it at the first look.
So what I need is something like this in the navigation menu:

Classes
ExampleTest_DE
ExampleTest_US
ExampleTest_UK

I know that I can pass parameters to xsl file and could change the displayed
names, but since I call my junitreport target after all Tests have been done
there is no way to get the previous parameters like the used
locale(DE,UK,US).

Is there a way to parse the generated xml filenames within the process of
html generation?
Or do you have another suggestion?

I really hope you understood my problem :)
--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.