如果测试项目中存在多个项目依赖项,如何将 Stryker.NET 工具合并到 Azure DevOps 管道中?
我有一个单元测试项目文件,它依赖于另外两个项目。 ABC.Service.UnitTest
是测试项目,其依赖项是 XYZ.Service.csproj
和 LMN.Aggregator.csproj
。
在这种情况下,我们的配置文件中究竟需要包含什么以及我们如何才能将此方案合并到我们的 ADO 管道中?
I have a unit test project file which depends on two other projects. ABC.Service.UnitTest
is the test project and its dependencies are XYZ.Service.csproj
and LMN.Aggregator.csproj
.
In this case, what exactly do we need to have in our config file and how exactly can we incorporate this scenario into our ADO pipelines?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
-p
指定要进行突变测试的项目 选项:或者,您可以使用
project
配置文件选项,尽管您需要有两个配置文件。无论哪种方式,这都会在两个最新的StrykerOutput
文件夹中生成两个不同的报告。该怎么办 - 取决于你。例如,您可以使用专用的 扩展将这些文件附加到构建中,请参阅完整指南 这里。
You can specify the project you want to mutation test using
-p
option:Alternatively, you can use
project
config file option, though you'll need to have two config files then. Either way, this will produce two different reports in the two latestStrykerOutput
folders.What to do with this - depends on you. For example, you can attach these files to builds using the dedicated extension, see the full guide here.