Skip to content

Commit 224049c

Browse files
committed
Fail F# build tests if warnings produced
1 parent 4d48a62 commit 224049c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/NetCoreTool.Template.WebApi.Test/ProjectOptionTest.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,8 @@ await TemplateSandbox(
5555
sandbox.CommandExitCode.Should().Be(0, sandbox.CommandOutput);
5656
Logger.WriteLine("building project");
5757
var buildCmd = "dotnet build";
58-
// TODO: can we ignore specific F# warnings so we can error if there are unexpected warnings?
59-
if (ToLanguageEnum(languageOption) == Language.CSharp)
60-
{
61-
buildCmd += " /p:TreatWarningsAsErrors=True";
62-
}
63-
58+
buildCmd += " /p:TreatWarningsAsErrors=True";
6459
await sandbox.ExecuteCommandAsync(buildCmd);
65-
6660
sandbox.CommandExitCode.Should().Be(0, sandbox.CommandOutput);
6761
}
6862

0 commit comments

Comments
 (0)