Showing posts with label guava. Show all posts
Showing posts with label guava. Show all posts

Thursday, June 14, 2012

util method that runs TestNG test classes and verify the result



The method does:
  • run TestNG tests programmatically
  • verify the failures happened in TestNG tests run
  • If there is a failure, combine all assertion messages including stack trace, then make a single AssertionError

(I'm also using google-guava)