在Jenkins中显示Chef Minitest Handler测试结果

在Jenkins中显示Chef Minitest Handler测试结果,jenkins,chef-infra,vagrant,minitest,Jenkins,Chef Infra,Vagrant,Minitest,我正在尝试使用chef minitest handler和Vagrant在VM中测试我的厨师烹饪书。我能够运行测试,但我想将其集成到Jenkins中 是否有可能以Jenkins能够理解的方式保存从chef[converge in VM]获得的测试结果(例如jUnit)并显示一个漂亮的通过/失败测试图?在git版本的chef minitest handler中(至少)有一个名为:ci_reports的处理程序参数,用于指定junit输出的存储位置。例如: handler = MiniTest::C

我正在尝试使用chef minitest handler和Vagrant在VM中测试我的厨师烹饪书。我能够运行测试,但我想将其集成到Jenkins中


是否有可能以Jenkins能够理解的方式保存从chef[converge in VM]获得的测试结果(例如jUnit)并显示一个漂亮的通过/失败测试图?

在git版本的chef minitest handler中(至少)有一个名为:ci_reports的处理程序参数,用于指定junit输出的存储位置。例如:

handler = MiniTest::Chef::Handler.new({
:path    => './cookbooks/test/*_test.rb',
:ci_reports => 'report.xml',
:verbose => true})
# add to the list of handlers

这将在chef minitest处理程序的git版本中将junit兼容的报告写入report.xml(至少)有一个名为:ci_reports的处理程序参数,指定junit输出的存储位置。例如:

handler = MiniTest::Chef::Handler.new({
:path    => './cookbooks/test/*_test.rb',
:ci_reports => 'report.xml',
:verbose => true})
# add to the list of handlers

这将向report.xml编写一个与junit兼容的报告。不错!他们在7月11日添加了:)。我太不耐烦了。不错!他们在7月11日添加了:)。我太不耐烦了。