From 8dab9d8768975386f0f0a6e8c430ed6e95ee0824 Mon Sep 17 00:00:00 2001 From: Mayank Bansal Date: Tue, 23 Oct 2018 17:26:41 +0530 Subject: [PATCH 1/2] document know CC issues --- .../codecovergae-datacollector-issues.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/extensions/codecovergae-datacollector-issues.md diff --git a/docs/extensions/codecovergae-datacollector-issues.md b/docs/extensions/codecovergae-datacollector-issues.md new file mode 100644 index 00000000..3ed11964 --- /dev/null +++ b/docs/extensions/codecovergae-datacollector-issues.md @@ -0,0 +1,17 @@ +# Syntax +```vstest.console.exe --collect:"code coverage"``` or ```dotnet test --collec:"code coverage"``` + +# Output + +A coverage file, which contains detailed report on what all code was hit when unit tests were run for specific(s) project. The generated file can be viewed in Visual Studio Enterprise, for a detailed analysis. + + +# Known Issues + +* We have often observed failures/crashes when tests are run with Code Coverage enabled on Windows 8.1(&Lower), or Windows Server 2012(& Lower), failing with ```Access Violation in covrun32.dll``` + +For such issues we recommened users to use coverage configuration specified at https://github.com/Microsoft/vstest/blob/master/src/DataCollectors/TraceDataCollector/VanguardCollector/DefaultCodeCoverageConfig.xml + +* Coverage file fails to open in VS E.g. https://github.com/Microsoft/vstest/issues/1814 + + One of the possible reason for this is when there are too many blocks in a single function. Currently we support ```65535(USHRT_MAX)``` blocks in a single method, beyond that we go into serialization issue while reading this data from coverage file. From 3b8b816c93c595fd45f197f606b96cfbb56089d2 Mon Sep 17 00:00:00 2001 From: Mayank Bansal Date: Tue, 23 Oct 2018 17:28:26 +0530 Subject: [PATCH 2/2] minor --- docs/extensions/codecovergae-datacollector-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extensions/codecovergae-datacollector-issues.md b/docs/extensions/codecovergae-datacollector-issues.md index 3ed11964..6dad94fc 100644 --- a/docs/extensions/codecovergae-datacollector-issues.md +++ b/docs/extensions/codecovergae-datacollector-issues.md @@ -10,7 +10,7 @@ A coverage file, which contains detailed report on what all code was hit when un * We have often observed failures/crashes when tests are run with Code Coverage enabled on Windows 8.1(&Lower), or Windows Server 2012(& Lower), failing with ```Access Violation in covrun32.dll``` -For such issues we recommened users to use coverage configuration specified at https://github.com/Microsoft/vstest/blob/master/src/DataCollectors/TraceDataCollector/VanguardCollector/DefaultCodeCoverageConfig.xml + For such issues we recommened users to use coverage configuration specified at https://github.com/Microsoft/vstest/blob/master/src/DataCollectors/TraceDataCollector/VanguardCollector/DefaultCodeCoverageConfig.xml * Coverage file fails to open in VS E.g. https://github.com/Microsoft/vstest/issues/1814