From f3aa5e05afb2911039488bf04e4d3a1ebebad05e Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Wed, 5 Apr 2017 12:49:46 -0500 Subject: [PATCH] Fix invalid output format specification for NUnit 3. --- NUnitOperation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NUnitOperation.cs b/NUnitOperation.cs index 85c56db..27816c4 100644 --- a/NUnitOperation.cs +++ b/NUnitOperation.cs @@ -81,7 +81,7 @@ public override async Task ExecuteAsync(IOperationExecutionContext context) this.LogDebug("Output file: " + outputFilePath); var args = this.IsNUnit3 - ? $"\"{testFilePath}\" --result:nunit2 --result:\"{outputFilePath}\"" + ? $"\"{testFilePath}\" --result:\"{outputFilePath}\";format=nunit2" : $"\"{testFilePath}\" /xml:\"{outputFilePath}\""; if (!string.IsNullOrEmpty(this.AdditionalArguments)) @@ -153,7 +153,7 @@ await this.ExecuteCommandLineAsync( } if (failures > 0) - this.LogError($"{0} test failures were reported."); + this.LogError($"{failures} test failures were reported."); } finally {