mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 09:02:41 +01:00
12 lines
644 B
PowerShell
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
|