Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Junit support

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic