upload test results

pull/3895/head
Jamie Rees 6 years ago
parent 781cc31380
commit 6cc6b0abbc

@ -48,7 +48,11 @@ after_build:
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\linux-arm64.tar.gz"
- ps: >-
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\src\**\TestResults\Test*.trx))
#cache:

@ -251,8 +251,17 @@ Task("Publish-Linux-ARM-64Bit")
Task("Run-Unit-Tests")
.Does(() =>
{
DotNetCoreTest(projDir);
{
var settings = new DotNetCoreTestSettings
{
ArgumentCustomization = args => args.Append("--logger \"trx;LogFileName=Test.trx\""),
Configuration = "Release"
};
var projectFiles = GetFiles("./**/*Tests.csproj");
foreach(var file in projectFiles)
{
DotNetCoreTest(file.FullPath, settings);
}
});
//////////////////////////////////////////////////////////////////////
// TASK TARGETS

Loading…
Cancel
Save