jenkins可以在单个项目中使用jUnit和nUnit测试输出来报告历史记录 [英] Can jenkins report on history with jUnit and nUnit test output in a single Project
问题描述
我有一个ASP.NET MVC项目,它是在Jenkins项目中构建的。我们使用nUnit插件来作为后构建步骤来处理来自我们的单元测试的输出。
I have an ASP .NET MVC project that is built in a Jenkins project. We're using the nUnit plugin to fangle the output from our unit tests as a post-build step.
我刚刚为项目中的javascript添加了Jasmine测试并在MSBuild中添加了一个步骤,让Chutzpah运行Jasmine测试并以jUnit格式输出结果。
I've just added Jasmine tests for the javascript in the project and added a step in MSBuild to have Chutzpah run the Jasmine tests and output the results in jUnit format.
我添加了一个后构建步骤来处理jUnit结果文件,Jenkins运行构建和在构建结果页面中提供了两个测试结果链接...
I added a post build step to process the jUnit results file and Jenkins runs the build and presents two 'Test Results' links in the Build result page...
但是,当我点击这些链接时,都会得到相同的结果。当我离开昨天是今天早上的nUnit结果是jUnit结果,所以我猜,它只是最后完成了什么?
However, when I click those links both go to the same result. When I left yesterday it was the nUnit results this morning it's the jUnit results so I'm guessing that it's just whichever finished last?
这是可能吗?
推荐答案
我会尝试使用xUnit 插件,这样您就可以配置它,以便在单个发布商中处理junit和nunit测试结果。
I would try just using the xUnit plugin, that way you can configure it to take bothe the junit and nunit test results all in a single publisher.
这篇关于jenkins可以在单个项目中使用jUnit和nUnit测试输出来报告历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!