From 323af412617f00ad0ee84d7df221265033e90da7 Mon Sep 17 00:00:00 2001 From: skwas Date: Thu, 25 Jul 2019 00:49:20 +0200 Subject: [PATCH] fix: custom codecov script does not generate and upload unit test results to AppVeyor --- appveyor.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 7a0df2b4..b739416c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -28,8 +28,11 @@ build: publish_nuget_symbols: true verbosity: minimal test_script: - - OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test -c Debug" -output:coverage.xml -register:user -filter:"+[IbanNet*]* -[*Tests]*" -oldStyle + - OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test -c Debug -l:trx;LogFileName=test-results.xml" -output:coverage.xml -register:user -filter:"+[IbanNet*]* -[*Tests]*" -oldStyle - codecov -f coverage.xml +on_finish: + - sh: | + find "$APPVEYOR_BUILD_FOLDER" -type f -name '*/test-results.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID" deploy: - provider: NuGet api_key: