在maven集成中运行Ruby单元测试

时间:2022-03-02 15:01:09

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

有没有人有从Maven中运行Ruby编写的单元测试的经验。

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

任何输入,如要使用的库/ maven插件,将受到高度赞赏!

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

我们已经在使用Maven + hudson + Junit了。但我们正在引入Ruby单元测试,并且找不到任何同样好的组合。

1 个解决方案

#1


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.

我建议让Maven使用Exec Maven插件(exec:exec目标)启动rake测试,并使用ci_reporter gem生成单元测试结果的XML文件,Hudson,Bamboo等可以读取以相同格式显示测试结果你的JUnit测试都在。

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

如果您不需要使用mvn test运行Ruby测试,您也可以使用Hudson rake插件。

#1


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.

我建议让Maven使用Exec Maven插件(exec:exec目标)启动rake测试,并使用ci_reporter gem生成单元测试结果的XML文件,Hudson,Bamboo等可以读取以相同格式显示测试结果你的JUnit测试都在。

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

如果您不需要使用mvn test运行Ruby测试,您也可以使用Hudson rake插件。