| Author |
Junit support
|
Luke Murphy
Ranch Hand
Joined: May 12, 2010
Posts: 299
|
|
Hi,
Suppose you are using JUnit extensively in your project. You want to persist test results to a database. So say you have a table in a database which has column such as test suite, test name, pass / fail, execution time etc and you wish to store all tests results from your build in it.
Now, you could write your own framework which wraps around Junit but I am wondering is there anything already that does this?
Even just to give me the test times, and test status I could then just put this in the database very easily using JPA.
Any advice?
Thanks.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26141
|
|
First, I'd consider using Hudson/Jenkins which stores all past results via the tool and provides nice reporting.
If you want to do it yourself, I think you'd have to write something yourself. The Ant junit report task provides a nice XML file that you could read with XPath or the like.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: Junit support
|
|
|