6

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.

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
cheekoo
  • 887
  • 12
  • 22

1 Answers1

5

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.

Matthew Ratzloff
  • 4,518
  • 1
  • 31
  • 35
  • Thanks Matthew for your response. I will try it out today. – cheekoo May 17 '11 at 17:34
  • Okay, I spent some time on this. Looks like your solution will work out. Just that I am not able to generate the XML's with CI Reporter. Could you pls have a look at http://stackoverflow.com/questions/6038305/cireported-not-generating-xmls-for-ruby-testunits and provide your inputs/suggestions? – cheekoo May 17 '11 at 23:35