如果测试项目中存在多个项目依赖项,如何将 Stryker.NET 工具合并到 Azure DevOps 管道中?

发布于 2025-01-11 12:25:31 字数 205 浏览 4 评论 0原文

我有一个单元测试项目文件,它依赖于另外两个项目。 ABC.Service.UnitTest 是测试项目,其依赖项是 XYZ.Service.csprojLMN.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神仙妹妹 2025-01-18 12:25:31

您可以使用 -p 指定要进行突变测试的项目 选项

dotnet stryker -p XYZ.Service.csproj
dotnet stryker -p LMN.Aggregator.csproj

或者,您可以使用project配置文件选项,尽管您需要有两个配置文件。无论哪种方式,这都会在两个最新的 StrykerOutput 文件夹中生成两个不同的报告。

该怎么办 - 取决于你。例如,您可以使用专用的 扩展将这些文件附加到构建中,请参阅完整指南 这里

You can specify the project you want to mutation test using -p option:

dotnet stryker -p XYZ.Service.csproj
dotnet stryker -p LMN.Aggregator.csproj

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 latest StrykerOutput 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文