Files
tgstation-server/build/UploadCoverage.ps1
T
2018-08-31 13:37:41 -04:00

12 lines
644 B
PowerShell

$coverageFilePaths = Get-ChildItem -Path TestResults -Filter *.coverage -Recurse -ErrorAction SilentlyContinue -Force | %{ $_.fullname }
$coverageFilePathList = [string]$coverageFilePaths
Write-Host "Running CodeCoverage.exe..."
&"C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe" analyze /output:service.coveragexml "$coverageFilePathList"
rm -r TestResults
codecov -f './api_coverage.xml ./client_coverage.xml ./host_coverage.xml ./console_coverage.xml ./watchdog_coverage.xml ./service.coveragexml' --flag unittests
codecov -f 'server_coverage.xml' --flag integration