Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Ruby unit tests within maven integration

Does anyone have experience with running unit tests written in Ruby from within Maven.

Any inputs, like the library/maven plugin to be used, will be highly appreciated!

We are already using Maven+hudson+Junit. But we are introducing Ruby unit tests, and can't find any equally good combination for it.

like image 365
cheekoo Avatar asked Mar 30 '11 19:03

cheekoo


1 Answers

I recommend having Maven kick off rake test using the Exec Maven Plugin (exec:exec goal) and using the ci_reporter gem to produce an XML file of unit test results that Hudson, Bamboo, etc. can read to display test results in the same format that your JUnit tests are in.

If you don't need to run your Ruby tests with mvn test, you can also just use the Hudson rake plugin.

like image 55
Matthew Ratzloff Avatar answered Oct 02 '22 14:10

Matthew Ratzloff