Skip to content

Commit

Permalink
Added UnitTest results to AppVeyor (MvvmCross#2120)
Browse files Browse the repository at this point in the history
* Add build.cake to sln items

* Upload NUnit test results to AppVeyor
  • Loading branch information
Cheesebaron authored Aug 17, 2017
1 parent cacb22d commit ea19715
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions MvvmCross_All.sln
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{73E029D9-EA9B-49ED-BBF7-5444AA032B15}"
ProjectSection(SolutionItems) = preProject
AssemblyInfo.cs = AssemblyInfo.cs
build.cake = build.cake
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MvvmCross.Platform.Droid", "MvvmCross\Platform\Droid\MvvmCross.Platform.Droid.csproj", "{CAF8935F-56FE-4485-9D34-4A38FE79F6C9}"
Expand Down
9 changes: 8 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,18 @@ Task("UnitTest")
new FilePath("./MvvmCross-Plugins/Network/MvvmCross.Plugins.Network.Test/bin/Release/MvvmCross.Plugins.Network.Test.dll").FullPath
};

var testResultsPath = new FilePath(outputDir + "/NUnitTestResult.xml");

NUnit3(testPaths, new NUnit3Settings {
Timeout = 30000,
OutputFile = new FilePath(outputDir + "/NUnitOutput.txt"),
Results = new FilePath(outputDir + "/NUnitTestResult.xml")
Results = testResultsPath
});

if (isRunningOnAppVeyor)
{
AppVeyor.UploadTestResults(testResultsPath, AppVeyorTestResultsType.NUnit3);
}
});

Task("GitLink")
Expand Down

0 comments on commit ea19715

Please sign in to comment.