set CONFIGURATION=%1
set OUTPUT=%2

set OPENCOVER=".\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe"
set TARGET="%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
set TARGET_ARGS=".\ThScoreFileConverterTests\bin\%CONFIGURATION%\ThScoreFileConverterTests.dll"
set FILTER="+[*]*"

%OPENCOVER% ^
    -register:user ^
    -target:%TARGET% ^
    -targetargs:%TARGET_ARGS% ^
    -filter:%FILTER% ^
    -output:%OUTPUT%

set CONFIGURATION=%1
set OUTPUT=%2

set OPENCOVER=".\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe"
set TARGET="%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
set TARGET_ARGS=".\ThScoreFileConverterTests\bin\%CONFIGURATION%\ThScoreFileConverterTests.dll"
set FILTER="+[*]* -[ThScoreFileConverterTests]*"

%OPENCOVER% ^
    -register:user ^
    -target:%TARGET% ^
    -targetargs:%TARGET_ARGS% ^
    -filter:%FILTER% ^
    -output:%OUTPUT%

Exclude ThScoreFileConverterTests from the coverage result
Exclude ThScoreFileConverterTests from the coverage result
