如何指定YAML中排除的路径

发布于 2025-02-04 05:59:49 字数 234 浏览 2 评论 0原文

我对YAML相对较新,并且有一些Azure管道可以维护。

下面的变量用于在Azure DevOps中运行单元测试,但现在添加了一个名为api.tests.restsharp的测试项目,我希望将

unitTestsGlob: $(Build.SourcesDirectory)\**\*Tests\*.csproj

其排除在运行之外特定的项目名称?

I'm relatively new to yaml and have some azure pipelines to maintain.

The variable below is used to run unit tests in azure DevOps but there has now been added a test project named Api.Tests.RestSharp which I wish to be excluded from being run

unitTestsGlob: $(Build.SourcesDirectory)\**\*Tests\*.csproj

How can I update this to exclude a specific project name?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

你好,陌生人 2025-02-11 05:59:49

我的解决方案:

unitTestsGlob: |
    $(Build.SourcesDirectory)\**\*Tests\*.csproj
    !$(Build.SourcesDirectory)\**\*RestSharp*\*.csproj

My solution:

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