diff --git a/appveyor.yml b/appveyor.yml index 51cfc05b5c..432fa59567 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -50,10 +50,12 @@ build: verbosity: minimal project: Rubberduck.sln +# TestScript depends on the build matrix to only contain Release cpu +# Otherwise we might run tests against artifacts that do not exist test_script: # we use -returntargetcode to fail the build if tests fail - - OpenCover.Console.exe -register:user -returntargetcode -target:"nunit3-console.exe" -targetargs:".\RubberduckTests\bin\Release\RubberduckTests.dll" -output:".\Rubberduck_Coverage.xml" - - OpenCover.Console.exe -register:user -returntargetcode -target:"nunit3-console.exe" -targetargs:".\RubberduckTestsCodeAnalysis\bin\Release\RubberduckTestsCodeAnalysis.dll" -output:".\RubberduckCodeAnalysis_Coverage.xml" + - OpenCover.Console.exe -register:user -returntargetcode -target:"nunit3-console.exe" -targetargs:".\RubberduckTests\bin\Release\net46\RubberduckTests.dll" -output:".\Rubberduck_Coverage.xml" + - OpenCover.Console.exe -register:user -returntargetcode -target:"nunit3-console.exe" -targetargs:".\RubberduckTestsCodeAnalysis\bin\Release\net46\RubberduckTestsCodeAnalysis.dll" -output:".\RubberduckCodeAnalysis_Coverage.xml" # when using test_script, after_test seems to not be executed - codecov -f "Rubberduck_Coverage.xml"