File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 25
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get report from running external tests