Repository navigation
Expand file tree
/
Copy pathConditionalTests.props
More file actions
115 lines (103 loc) · 4.72 KB
/
Copy pathConditionalTests.props
File metadata and controls
115 lines (103 loc) · 4.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<Project>
<!--
Conditional Test Filtering
This file defines which tests can be skipped on PRs that don't touch relevant source.
See documentation/project-docs/pr-test-filtering.md for design details and usage guide.
The run-tests agent skill reads these scopes directly. When changing them, also
reconcile its fallback table for common unscoped areas: remove entries now covered by
a scope, and update entries when test-project ownership changes.
-->
<!-- ======== Global trigger paths ========
If ANY changed file matches these patterns, ALL scopes below are forced active.
Use for shared infrastructure that all code/tests depend on. List patterns in
alphabetical order. -->
<PropertyGroup>
<GlobalTriggerPaths>
eng/Version.Details.xml;
src/Layout/redist/targets/GenerateBundledVersions.targets;
test/Microsoft.NET.TestFramework/**;
test/Microsoft.NET.TestFramework.MSTest/**
</GlobalTriggerPaths>
</PropertyGroup>
<!-- ======== Conditional test scopes ========
Each ConditionalTestScope item defines a set of tests that only run when specific
source paths change or under specific build conditions.
Metadata:
Mechanism: "project" = entire test project(s) excluded/included from Helix submission.
TestProjects: (Mechanism=project) Semicolon-separated glob patterns matching test .csproj
files, relative to the repo root.
TriggerPaths: Semicolon-separated glob patterns relative to the repo root. If ANY changed
file matches, the scope runs. List patterns in alphabetical order.
RunAlways: Conditions under which the scope always runs regardless of changed files.
Supported values: CI (non-PR builds). -->
<ItemGroup>
<ConditionalTestScope Include="CliResources">
<Mechanism>project</Mechanism>
<TestProjects>
test/Microsoft.DotNet.Cli.CoreUtils.Tests/Microsoft.DotNet.Cli.CoreUtils.Tests.csproj;
test/Microsoft.DotNet.Cli.Resources.Generator.Tests/Microsoft.DotNet.Cli.Resources.Generator.Tests.csproj
</TestProjects>
<TriggerPaths>
src/Cli/Microsoft.DotNet.Cli.CoreUtils/Resources/**;
src/Cli/Microsoft.DotNet.Cli.Resources.Generator/**;
test/Microsoft.DotNet.Cli.CoreUtils.Tests/**;
test/Microsoft.DotNet.Cli.Resources.Generator.Tests/**
</TriggerPaths>
<RunAlways>CI</RunAlways>
</ConditionalTestScope>
<ConditionalTestScope Include="ApiCompat">
<Mechanism>project</Mechanism>
<TestProjects>test/Compatibility/**/*.csproj</TestProjects>
<TriggerPaths>
src/Compatibility/**;
test/Compatibility/**;
test/TestAssets/TestProjects/ApiCompatValidateAssembliesTestProject/**;
test/TestAssets/TestProjects/GenAPITaskTestProject/**;
test/TestAssets/TestProjects/PackageValidationTestProject/**
</TriggerPaths>
<RunAlways>CI</RunAlways>
</ConditionalTestScope>
<ConditionalTestScope Include="DotnetFormat">
<Mechanism>project</Mechanism>
<TestProjects>test/dotnet-format.*/**/*.csproj</TestProjects>
<TriggerPaths>
src/Cli/dotnet/Commands/Format/**;
src/Dotnet.Format/**;
test/dotnet-format.*/**;
test/TestAssets/dotnet-format/**
</TriggerPaths>
<RunAlways>CI</RunAlways>
</ConditionalTestScope>
<ConditionalTestScope Include="ILLink">
<Mechanism>project</Mechanism>
<TestProjects>test/Microsoft.NET.ILLink.Tests/Microsoft.NET.ILLink.Tests.csproj</TestProjects>
<TriggerPaths>
src/Tasks/Microsoft.NET.Build.Tasks/**;
test/Microsoft.NET.ILLink.Tests/**;
test/TestAssets/TestProjects/TrimmableNetstandardLibrary/**;
test/TestAssets/TestProjects/TrimmedAppWithReferences/**
</TriggerPaths>
<RunAlways>CI</RunAlways>
</ConditionalTestScope>
<ConditionalTestScope Include="NetAnalyzers">
<Mechanism>project</Mechanism>
<TestProjects>src/Microsoft.CodeAnalysis.NetAnalyzers/tests/**/*.csproj</TestProjects>
<TriggerPaths>
src/Microsoft.CodeAnalysis.NetAnalyzers/**
</TriggerPaths>
<RunAlways>CI</RunAlways>
</ConditionalTestScope>
<ConditionalTestScope Include="TemplateEngine">
<Mechanism>project</Mechanism>
<TestProjects>test/TemplateEngine/**/*.csproj</TestProjects>
<TriggerPaths>
documentation/TemplateEngine/Samples/**;
src/TemplateEngine/**;
template_feed/Microsoft.TemplateEngine.Authoring.Templates/**;
test/TemplateEngine/**;
test/TestAssets/TestPackages/TemplateEngine/**
</TriggerPaths>
<RunAlways>CI</RunAlways>
</ConditionalTestScope>
</ItemGroup>
</Project>