Skip to content

Commit

Permalink
test results upload (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinchilson authored Oct 26, 2018
1 parent 564e4ad commit 8907e34
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,16 @@ Task("Test")
DotNetCoreTest(path.FullPath, new DotNetCoreTestSettings
{
Configuration = configuration,
NoBuild = true
NoBuild = true,
ResultsDirectory = artifactsDirectory,
Logger = "trx;LogFileName=TestResults.xml"
});

if (AppVeyor.IsRunningOnAppVeyor)
{
var testResultsFile = MakeAbsolute(new FilePath($"{MakeAbsolute(artifactsDirectory)}/TestResults.xml"));
BuildSystem.AppVeyor.UploadTestResults(testResultsFile, AppVeyorTestResultsType.MSTest);
}
});

Task("Pack")
Expand Down

0 comments on commit 8907e34

Please sign in to comment.