This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Testing and the fly likes Get report from running external tests Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Bookmark "Get report from running external tests" Watch "Get report from running external tests" New topic
Author

Get report from running external tests

Gynnad Paullussen
Ranch Hand

Joined: Jan 26, 2011
Posts: 49
Hello,

I’m running my Unittests from a CMS, I call in that class the code to start the unittesten of my plugin. Now is my question can I get a report from that? Where I can find the results of the tests.
enric jaen
Greenhorn

Joined: Oct 15, 2010
Posts: 27
I am not expert in junit reports, but I am not sure to understand you escenario. Who is triggering your unit tests?

If I have understood your tests are launched inside your running application, aren't they?

If so, options you could try are:
- use cactus http://jakarta.apache.org/cactus/how_it_works.html which has report support (I don't have experience with cactus)
- log your tests and later read the logs
- invoke yourself the junitreport ant task programatically: http://stackoverflow.com/questions/3916717/antcreate-junit-report-task-programmatically
- use a junit runner that generates reports, http://code.google.com/p/reporting-junit-runner/
Gynnad Paullussen
Ranch Hand

Joined: Jan 26, 2011
Posts: 49
I call a method inside my plugins and that method activated inside my java code the test code. So they will run the code and I need some feedback from it.
 
Have you checked out Aspose?
 
subject: Get report from running external tests
 
jQuery in Action, 3rd edition