Skip to content

Commit 71734a8

Browse files
committed
Opt-in to MTP
1 parent ea4a0c2 commit 71734a8

3 files changed

Lines changed: 17 additions & 13 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<DebugType>embedded</DebugType>
88
<PublishRepositoryUrl>true</PublishRepositoryUrl>
99
<EmbedUntrackedSources>true</EmbedUntrackedSources>
10+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
1011
</PropertyGroup>
1112

1213
<PropertyGroup>

global.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"sdk": {
3-
"version": "10.0.100",
4-
"rollForward": "latestMinor"
5-
}
2+
"sdk": {
3+
"version": "10.0.100",
4+
"rollForward": "latestMinor"
5+
},
6+
"test": {
7+
"runner": "Microsoft.Testing.Platform"
8+
}
69
}

src/Fallout.Components/ITest.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ IEnumerable<string> GetOutcomes(AbsolutePath file)
9494

9595
sealed Configure<DotNetTestSettings, Project> TestProjectSettingsBase => (_, v) => _
9696
.SetProjectFile(v)
97-
// https://github.com/Tyrrrz/GitHubActionsTestLogger
98-
.When(GitHubActions.Instance is not null && v.HasPackageReference("GitHubActionsTestLogger"), _ => _
99-
.AddLoggers("GitHubActions;report-warnings=false"))
100-
// https://github.com/JetBrains/TeamCity.VSTest.TestAdapter
101-
.When(TeamCity.Instance is not null && v.HasPackageReference("TeamCity.VSTest.TestAdapter"), _ => _
102-
.AddLoggers("TeamCity")
103-
// https://github.com/xunit/visualstudio.xunit/pull/108
104-
.AddRunSetting("RunConfiguration.NoAutoReporters", bool.TrueString))
105-
.AddLoggers($"trx;LogFileName={v.Name}.trx")
97+
// // https://github.com/Tyrrrz/GitHubActionsTestLogger
98+
// .When(GitHubActions.Instance is not null && v.HasPackageReference("GitHubActionsTestLogger"), _ => _
99+
// .AddLoggers("GitHubActions;report-warnings=false"))
100+
// // https://github.com/JetBrains/TeamCity.VSTest.TestAdapter
101+
// .When(TeamCity.Instance is not null && v.HasPackageReference("TeamCity.VSTest.TestAdapter"), _ => _
102+
// .AddLoggers("TeamCity")
103+
// // https://github.com/xunit/visualstudio.xunit/pull/108
104+
// .AddRunSetting("RunConfiguration.NoAutoReporters", bool.TrueString))
105+
// .AddLoggers($"trx;LogFileName={v.Name}.trx")
106106
.When(InvokedTargets.Contains((this as IReportCoverage)?.ReportCoverage) || IsServerBuild, _ => _
107107
.SetCoverletOutput(TestResultDirectory / $"{v.Name}.xml"));
108108

0 commit comments

Comments
 (0)