मैं निम्नलिखित सेटअप:vstest.console.exe काम करता है, लेकिन नहीं एक अच्छा फ़ाइल नाम के साथ, CodeCoverage.exe किसी भी परिणाम नहीं देता है
set __vsTestConsoleExe=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe
set __codeCoverageExe=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
set __testFile=My.UnitTests.dll
REM Below I get a ".coverage" file with the correct coverage. But the file name is kinda-random
"%__vsTestConsoleExe%" "%__testFile%" /InIsolation /EnableCodeCoverage
PAUSE
REM Below I get a big ole nothing
"%__codeCoverageExe%" collect /output:DynamicCodeCoverage.coverage "%__vsTestConsoleExe%" "%__testFile%" /InIsolation /EnableCodeCoverage
"%__codeCoverageExe%" analyze /output:DynamicCodeCoverage.coveragexml DynamicCodeCoverage.coverage
जब नीचे लाइन चलाता है:
"%__vsTestConsoleExe%" "%__testFile%" /InIsolation /EnableCodeCoverage
मैं एक अच्छा .coverage फ़ाइल मिलता है, लेकिन इसकी एक उत्पन्न फ़ाइल नाम की तरह:
MyUSERNAME_MYMACHINE 2016-03-24 16_03_20.coverage
रोकें बयान के बाद लाइनों (पहले कोड ब्लॉक में) ऐसा लगता है कि उन्हें कवरेज एकत्र करना चाहिए (और ध्यान दें, मैं इसे वही दे रहा हूं ''% __ बनामस्ट कंसोलएक्स%% '' comamand ....... लेकिन मुझे इससे कुछ भी बड़ा नहीं मिलता है।
मैं क्या गलत कर रहा हूं?