来自不同解决方案的声纳运行测试(.NET)

时间:2022-02-13 15:38:37

So here is my scenario, I have .NET project, lets call it FooBar, which is a web application, and in a entirely separate solution I have a .NET project lets call it FooBarSeleniumUITests to test the web application using Selenium Webdriver, it is intended to be a black box integration test suite. Now what is the best way to get this test suite reported into sonar as part of the FooBar report, and, if possible have a list of test from the test suite be kicked off at build time and need to pass for the build to be successful. I already have the test suite loaded into gallio icarus, however the sonar gallio plugin page states that the integration tests must be in the analysed solution, is there a way around this?

所以这是我的情况,我有。net项目,可以称之为FooBar,这是一个web应用程序,并在一个完全独立的解决方案我有。net项目让称之为FooBarSeleniumUITests使用硒Webdriver测试web应用程序,它的目的是成为一个黑盒测试套件集成。现在,将这个测试套件报告成为FooBar报告的一部分的最佳方法是什么?如果可能,在构建时启动测试套件的测试列表,并需要通过构建来获得成功。我已经将测试套件加载到gallio icarus中,但是sonar gallio插件页面声明集成测试必须在分析的解决方案中,是否有办法解决这个问题?

1 个解决方案

#1


0  

Running your ITs prior to launching the Sonar analysis and using "sonar.gallio.it.mode=reuseReport" (along with "sonar.gallio.it.reports.path" and "sonar.gallio.it.coverage.reports.path" to find the XML reports) should make it.

在启动声纳分析和使用“sonar.gallioit”之前运行它。模式= reuseReport”(连同“sonar.gallio.it.reports。路径”和“sonar.gallio.it.coverage.reports。路径“查找XML报告)应该可以。

See http://docs.codehaus.org/display/SONAR/sonar-dotnet-gallio-plugin

参见http://docs.codehaus.org/display/SONAR/sonar-dotnet-gallio-plugin

However, you must make sure that you do not move your sources to another folder, otherwise the test/coverage reports will contain wrong paths and Sonar won't be able to attach those test/coverage results to your project resources.

但是,您必须确保不会将您的源移动到另一个文件夹,否则测试/覆盖报告将包含错误的路径,而声纳将无法将这些测试/覆盖结果附加到您的项目资源中。

#1


0  

Running your ITs prior to launching the Sonar analysis and using "sonar.gallio.it.mode=reuseReport" (along with "sonar.gallio.it.reports.path" and "sonar.gallio.it.coverage.reports.path" to find the XML reports) should make it.

在启动声纳分析和使用“sonar.gallioit”之前运行它。模式= reuseReport”(连同“sonar.gallio.it.reports。路径”和“sonar.gallio.it.coverage.reports。路径“查找XML报告)应该可以。

See http://docs.codehaus.org/display/SONAR/sonar-dotnet-gallio-plugin

参见http://docs.codehaus.org/display/SONAR/sonar-dotnet-gallio-plugin

However, you must make sure that you do not move your sources to another folder, otherwise the test/coverage reports will contain wrong paths and Sonar won't be able to attach those test/coverage results to your project resources.

但是,您必须确保不会将您的源移动到另一个文件夹,否则测试/覆盖报告将包含错误的路径,而声纳将无法将这些测试/覆盖结果附加到您的项目资源中。