Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Fix invalid output format specification for NUnit 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Apr 5, 2017
1 parent 4264381 commit f3aa5e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NUnitOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit f3aa5e0

Please sign in to comment.