Skip to content

Commit

Permalink
Added check for error message when running tests with dotnet. (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilleBo authored Jan 15, 2020
1 parent 33de2ed commit c612c3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Task<TestSuiteResult> RunTestWithRetries(string dllPath, int retries)
ReadToEnd(command.StandardOutput, cancellationToken, out var message);

var resultFile = GetResultFile(directoryPath);
var success = !string.IsNullOrEmpty(resultFile);
var success = !string.IsNullOrEmpty(resultFile) && (string.IsNullOrEmpty(error) || error == "Test Run Failed.");

if (!success)
{
Expand Down

0 comments on commit c612c3a

Please sign in to comment.