How can I get code coverage from multiple projects
I have a solution with 4 projects (2 regular and 2 test projects). I have a build pipeline in TFS 2018 that builds my solution and checks the code coverage. My problem is that only the code coverage from one project is reported. The code coverage from the other project is missing. All tests are run, though.
The Visual Studio Test step looks like this:
The relevant sections of the .runsettings file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Include>
<ModulePath>.*.dll$</ModulePath>
</Include>
<Exclude>
<ModulePath>.*CPPUnitTestFramework.*</ModulePath>
<ModulePath>.*moq.dll</ModulePath>
<ModulePath>.*Tests.dll</ModulePath>
</Exclude>
</ModulePaths>
<!-- We recommend you do not change the following values: -->
<UseVerifiableInstrumentation>False</UseVerifiableInstrumentation>
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<CollectAspDotNet>False</CollectAspDotNet>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
Here is the log output from the test step:
2018-11-19T13:19:41.2308934Z ##[section]Starting: VsTest - netframework
2018-11-19T13:19:41.2412211Z ==============================================================================
2018-11-19T13:19:41.2412390Z Task : Visual Studio Test
2018-11-19T13:19:41.2412658Z Description : Run unit and functional tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio Test runner. Test frameworks that have a Visual Studio test adapter such as xUnit, NUnit, Chutzpah, etc. can also be run. Tests can be distributed on multiple agents using this task (version 2).
2018-11-19T13:19:41.2412934Z Version : 2.3.28
2018-11-19T13:19:41.2413056Z Author : Microsoft Corporation
2018-11-19T13:19:41.2413412Z Help : More Information
2018-11-19T13:19:41.2413616Z ==============================================================================
2018-11-19T13:19:42.4501863Z Run the tests locally using vstest.console.exe
2018-11-19T13:19:42.4502051Z ========================================================
2018-11-19T13:19:42.4502460Z Test selector : Test assemblies
2018-11-19T13:19:42.4502750Z Test assemblies : * * release * Tests.dll,! * * obj * *
2018-11-19T13:19:42.4503062Z Test filter criteria : null
2018-11-19T13:19:42.4503281Z Search folder : C:agent_work1s
2018-11-19T13:19:42.4503610Z Run settings file : C:agent_work1sMyProjectCodeCoverage.runsettings
2018-11-19T13:19:42.4503933Z Run in parallel : false
2018-11-19T13:19:42.4504212Z Run in isolation : false
2018-11-19T13:19:42.4505649Z Path to custom adapters : C:agent_work1sMyProjectProject2Testsbinrelease
2018-11-19T13:19:42.4505955Z Other console options : null
2018-11-19T13:19:42.4506168Z Code coverage enabled : false
2018-11-19T13:19:42.4506699Z Rerun failed tests: false
2018-11-19T13:19:42.8500173Z VisualStudio version selected for test execution : toolsInstaller
2018-11-19T13:19:43.0554534Z ========================================================
2018-11-19T13:19:43.1339450Z [command]C:agent_work_toolVsTest15.9.1-preview-20181023-04x64toolsnet451Common7IDEExtensionsTestPlatformvstest.console.exe @C:WINDOWSSERVIC~3NETWOR~1AppDataLocalTempc6857b51-ebfd-11e8-a1f3-554a7ebf3861.txt
2018-11-19T13:19:43.3385913Z Microsoft (R) Testausführungs-Befehlszeilentool Version 15.9.1-preview-20181023-04
2018-11-19T13:19:43.3451743Z Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
2018-11-19T13:19:43.3452021Z
2018-11-19T13:19:43.3612218Z vstest.console.exe
2018-11-19T13:19:43.3612440Z "C:agent_work1sMyProjectProject1TestsbinReleaseProject1Tests.dll"
2018-11-19T13:19:43.3612731Z "C:agent_work1sMyProjectProject2TestsbinReleaseProject2Tests.dll"
2018-11-19T13:19:43.3612945Z /Settings:"C:agent_work1sMyProjectCodeCoverage.runsettings"
2018-11-19T13:19:43.3613085Z /logger:"trx"
2018-11-19T13:19:43.3613289Z /TestAdapterPath:"C:agent_work1sMyProjectProject2Testsbinrelease"
2018-11-19T13:19:43.6746135Z Die Testausführung wird gestartet, bitte warten...
2018-11-19T13:19:44.9662159Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.3000
2018-11-19T13:19:44.9663027Z
2018-11-19T13:19:44.9666782Z
2018-11-19T13:19:44.9674700Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-11-19T13:19:44.9677551Z
2018-11-19T13:19:50.3174860Z Bestanden Test1
... lots of other tests ...
2018-11-19T13:19:53.3609732Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.3000
2018-11-19T13:19:53.3610319Z
2018-11-19T13:19:53.3610430Z
2018-11-19T13:19:53.3610840Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-11-19T13:19:53.3611590Z
2018-11-19T13:19:53.8607813Z Bestanden Test2
... more tests ...
2018-11-19T13:19:53.9355517Z Ergebnisdatei: C:agent_work1sTestResultsTFS-BUILD09$_TFS-BUILD09_2018-11-19_14_19_50.trx
2018-11-19T13:19:53.9358179Z
2018-11-19T13:19:53.9451115Z Anlagen:
2018-11-19T13:19:53.9470455Z C:agent_work1sTestResults332a54cb-163b-4b3b-9bd4-2f5a5be70f4eTFS-BUILD09$_TFS-BUILD09 2018-11-19 14_19_44.coverage
2018-11-19T13:19:53.9591330Z
2018-11-19T13:19:53.9709295Z Tests gesamt: 128. Bestanden: 128. Fehler: 0. Übersprungen: 0.
2018-11-19T13:19:53.9741454Z Der Testlauf war erfolgreich.
2018-11-19T13:19:53.9781474Z Testausführungszeit: 8,6925 Sekunden
2018-11-19T13:19:54.2519255Z Publishing test results to test run '178'
2018-11-19T13:19:54.2519974Z Test results remaining: 128. Test run id: 178
2018-11-19T13:19:54.3272038Z ##[section]Async Command Start: Publish test results
2018-11-19T13:19:54.6094836Z Published Test Run : https://xxx/_TestManagement/Runs#runId=178&_a=runCharts
2018-11-19T13:19:54.6095328Z ##[section]Async Command End: Publish test results
2018-11-19T13:19:54.6096656Z ##[section]Finishing: VsTest
c# tfs tfs2018
add a comment |
I have a solution with 4 projects (2 regular and 2 test projects). I have a build pipeline in TFS 2018 that builds my solution and checks the code coverage. My problem is that only the code coverage from one project is reported. The code coverage from the other project is missing. All tests are run, though.
The Visual Studio Test step looks like this:
The relevant sections of the .runsettings file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Include>
<ModulePath>.*.dll$</ModulePath>
</Include>
<Exclude>
<ModulePath>.*CPPUnitTestFramework.*</ModulePath>
<ModulePath>.*moq.dll</ModulePath>
<ModulePath>.*Tests.dll</ModulePath>
</Exclude>
</ModulePaths>
<!-- We recommend you do not change the following values: -->
<UseVerifiableInstrumentation>False</UseVerifiableInstrumentation>
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<CollectAspDotNet>False</CollectAspDotNet>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
Here is the log output from the test step:
2018-11-19T13:19:41.2308934Z ##[section]Starting: VsTest - netframework
2018-11-19T13:19:41.2412211Z ==============================================================================
2018-11-19T13:19:41.2412390Z Task : Visual Studio Test
2018-11-19T13:19:41.2412658Z Description : Run unit and functional tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio Test runner. Test frameworks that have a Visual Studio test adapter such as xUnit, NUnit, Chutzpah, etc. can also be run. Tests can be distributed on multiple agents using this task (version 2).
2018-11-19T13:19:41.2412934Z Version : 2.3.28
2018-11-19T13:19:41.2413056Z Author : Microsoft Corporation
2018-11-19T13:19:41.2413412Z Help : More Information
2018-11-19T13:19:41.2413616Z ==============================================================================
2018-11-19T13:19:42.4501863Z Run the tests locally using vstest.console.exe
2018-11-19T13:19:42.4502051Z ========================================================
2018-11-19T13:19:42.4502460Z Test selector : Test assemblies
2018-11-19T13:19:42.4502750Z Test assemblies : * * release * Tests.dll,! * * obj * *
2018-11-19T13:19:42.4503062Z Test filter criteria : null
2018-11-19T13:19:42.4503281Z Search folder : C:agent_work1s
2018-11-19T13:19:42.4503610Z Run settings file : C:agent_work1sMyProjectCodeCoverage.runsettings
2018-11-19T13:19:42.4503933Z Run in parallel : false
2018-11-19T13:19:42.4504212Z Run in isolation : false
2018-11-19T13:19:42.4505649Z Path to custom adapters : C:agent_work1sMyProjectProject2Testsbinrelease
2018-11-19T13:19:42.4505955Z Other console options : null
2018-11-19T13:19:42.4506168Z Code coverage enabled : false
2018-11-19T13:19:42.4506699Z Rerun failed tests: false
2018-11-19T13:19:42.8500173Z VisualStudio version selected for test execution : toolsInstaller
2018-11-19T13:19:43.0554534Z ========================================================
2018-11-19T13:19:43.1339450Z [command]C:agent_work_toolVsTest15.9.1-preview-20181023-04x64toolsnet451Common7IDEExtensionsTestPlatformvstest.console.exe @C:WINDOWSSERVIC~3NETWOR~1AppDataLocalTempc6857b51-ebfd-11e8-a1f3-554a7ebf3861.txt
2018-11-19T13:19:43.3385913Z Microsoft (R) Testausführungs-Befehlszeilentool Version 15.9.1-preview-20181023-04
2018-11-19T13:19:43.3451743Z Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
2018-11-19T13:19:43.3452021Z
2018-11-19T13:19:43.3612218Z vstest.console.exe
2018-11-19T13:19:43.3612440Z "C:agent_work1sMyProjectProject1TestsbinReleaseProject1Tests.dll"
2018-11-19T13:19:43.3612731Z "C:agent_work1sMyProjectProject2TestsbinReleaseProject2Tests.dll"
2018-11-19T13:19:43.3612945Z /Settings:"C:agent_work1sMyProjectCodeCoverage.runsettings"
2018-11-19T13:19:43.3613085Z /logger:"trx"
2018-11-19T13:19:43.3613289Z /TestAdapterPath:"C:agent_work1sMyProjectProject2Testsbinrelease"
2018-11-19T13:19:43.6746135Z Die Testausführung wird gestartet, bitte warten...
2018-11-19T13:19:44.9662159Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.3000
2018-11-19T13:19:44.9663027Z
2018-11-19T13:19:44.9666782Z
2018-11-19T13:19:44.9674700Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-11-19T13:19:44.9677551Z
2018-11-19T13:19:50.3174860Z Bestanden Test1
... lots of other tests ...
2018-11-19T13:19:53.3609732Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.3000
2018-11-19T13:19:53.3610319Z
2018-11-19T13:19:53.3610430Z
2018-11-19T13:19:53.3610840Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-11-19T13:19:53.3611590Z
2018-11-19T13:19:53.8607813Z Bestanden Test2
... more tests ...
2018-11-19T13:19:53.9355517Z Ergebnisdatei: C:agent_work1sTestResultsTFS-BUILD09$_TFS-BUILD09_2018-11-19_14_19_50.trx
2018-11-19T13:19:53.9358179Z
2018-11-19T13:19:53.9451115Z Anlagen:
2018-11-19T13:19:53.9470455Z C:agent_work1sTestResults332a54cb-163b-4b3b-9bd4-2f5a5be70f4eTFS-BUILD09$_TFS-BUILD09 2018-11-19 14_19_44.coverage
2018-11-19T13:19:53.9591330Z
2018-11-19T13:19:53.9709295Z Tests gesamt: 128. Bestanden: 128. Fehler: 0. Übersprungen: 0.
2018-11-19T13:19:53.9741454Z Der Testlauf war erfolgreich.
2018-11-19T13:19:53.9781474Z Testausführungszeit: 8,6925 Sekunden
2018-11-19T13:19:54.2519255Z Publishing test results to test run '178'
2018-11-19T13:19:54.2519974Z Test results remaining: 128. Test run id: 178
2018-11-19T13:19:54.3272038Z ##[section]Async Command Start: Publish test results
2018-11-19T13:19:54.6094836Z Published Test Run : https://xxx/_TestManagement/Runs#runId=178&_a=runCharts
2018-11-19T13:19:54.6095328Z ##[section]Async Command End: Publish test results
2018-11-19T13:19:54.6096656Z ##[section]Finishing: VsTest
c# tfs tfs2018
Look at the output of the test step. Are all the tests you're expecting to run being run? Update your question with the logs.
– Daniel Mann
Nov 19 '18 at 15:04
@Daniel Mann: Yes, all tests are run. I checked the log. I will update my question.
– gartenriese
Nov 19 '18 at 15:14
add a comment |
I have a solution with 4 projects (2 regular and 2 test projects). I have a build pipeline in TFS 2018 that builds my solution and checks the code coverage. My problem is that only the code coverage from one project is reported. The code coverage from the other project is missing. All tests are run, though.
The Visual Studio Test step looks like this:
The relevant sections of the .runsettings file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Include>
<ModulePath>.*.dll$</ModulePath>
</Include>
<Exclude>
<ModulePath>.*CPPUnitTestFramework.*</ModulePath>
<ModulePath>.*moq.dll</ModulePath>
<ModulePath>.*Tests.dll</ModulePath>
</Exclude>
</ModulePaths>
<!-- We recommend you do not change the following values: -->
<UseVerifiableInstrumentation>False</UseVerifiableInstrumentation>
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<CollectAspDotNet>False</CollectAspDotNet>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
Here is the log output from the test step:
2018-11-19T13:19:41.2308934Z ##[section]Starting: VsTest - netframework
2018-11-19T13:19:41.2412211Z ==============================================================================
2018-11-19T13:19:41.2412390Z Task : Visual Studio Test
2018-11-19T13:19:41.2412658Z Description : Run unit and functional tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio Test runner. Test frameworks that have a Visual Studio test adapter such as xUnit, NUnit, Chutzpah, etc. can also be run. Tests can be distributed on multiple agents using this task (version 2).
2018-11-19T13:19:41.2412934Z Version : 2.3.28
2018-11-19T13:19:41.2413056Z Author : Microsoft Corporation
2018-11-19T13:19:41.2413412Z Help : More Information
2018-11-19T13:19:41.2413616Z ==============================================================================
2018-11-19T13:19:42.4501863Z Run the tests locally using vstest.console.exe
2018-11-19T13:19:42.4502051Z ========================================================
2018-11-19T13:19:42.4502460Z Test selector : Test assemblies
2018-11-19T13:19:42.4502750Z Test assemblies : * * release * Tests.dll,! * * obj * *
2018-11-19T13:19:42.4503062Z Test filter criteria : null
2018-11-19T13:19:42.4503281Z Search folder : C:agent_work1s
2018-11-19T13:19:42.4503610Z Run settings file : C:agent_work1sMyProjectCodeCoverage.runsettings
2018-11-19T13:19:42.4503933Z Run in parallel : false
2018-11-19T13:19:42.4504212Z Run in isolation : false
2018-11-19T13:19:42.4505649Z Path to custom adapters : C:agent_work1sMyProjectProject2Testsbinrelease
2018-11-19T13:19:42.4505955Z Other console options : null
2018-11-19T13:19:42.4506168Z Code coverage enabled : false
2018-11-19T13:19:42.4506699Z Rerun failed tests: false
2018-11-19T13:19:42.8500173Z VisualStudio version selected for test execution : toolsInstaller
2018-11-19T13:19:43.0554534Z ========================================================
2018-11-19T13:19:43.1339450Z [command]C:agent_work_toolVsTest15.9.1-preview-20181023-04x64toolsnet451Common7IDEExtensionsTestPlatformvstest.console.exe @C:WINDOWSSERVIC~3NETWOR~1AppDataLocalTempc6857b51-ebfd-11e8-a1f3-554a7ebf3861.txt
2018-11-19T13:19:43.3385913Z Microsoft (R) Testausführungs-Befehlszeilentool Version 15.9.1-preview-20181023-04
2018-11-19T13:19:43.3451743Z Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
2018-11-19T13:19:43.3452021Z
2018-11-19T13:19:43.3612218Z vstest.console.exe
2018-11-19T13:19:43.3612440Z "C:agent_work1sMyProjectProject1TestsbinReleaseProject1Tests.dll"
2018-11-19T13:19:43.3612731Z "C:agent_work1sMyProjectProject2TestsbinReleaseProject2Tests.dll"
2018-11-19T13:19:43.3612945Z /Settings:"C:agent_work1sMyProjectCodeCoverage.runsettings"
2018-11-19T13:19:43.3613085Z /logger:"trx"
2018-11-19T13:19:43.3613289Z /TestAdapterPath:"C:agent_work1sMyProjectProject2Testsbinrelease"
2018-11-19T13:19:43.6746135Z Die Testausführung wird gestartet, bitte warten...
2018-11-19T13:19:44.9662159Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.3000
2018-11-19T13:19:44.9663027Z
2018-11-19T13:19:44.9666782Z
2018-11-19T13:19:44.9674700Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-11-19T13:19:44.9677551Z
2018-11-19T13:19:50.3174860Z Bestanden Test1
... lots of other tests ...
2018-11-19T13:19:53.3609732Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.3000
2018-11-19T13:19:53.3610319Z
2018-11-19T13:19:53.3610430Z
2018-11-19T13:19:53.3610840Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-11-19T13:19:53.3611590Z
2018-11-19T13:19:53.8607813Z Bestanden Test2
... more tests ...
2018-11-19T13:19:53.9355517Z Ergebnisdatei: C:agent_work1sTestResultsTFS-BUILD09$_TFS-BUILD09_2018-11-19_14_19_50.trx
2018-11-19T13:19:53.9358179Z
2018-11-19T13:19:53.9451115Z Anlagen:
2018-11-19T13:19:53.9470455Z C:agent_work1sTestResults332a54cb-163b-4b3b-9bd4-2f5a5be70f4eTFS-BUILD09$_TFS-BUILD09 2018-11-19 14_19_44.coverage
2018-11-19T13:19:53.9591330Z
2018-11-19T13:19:53.9709295Z Tests gesamt: 128. Bestanden: 128. Fehler: 0. Übersprungen: 0.
2018-11-19T13:19:53.9741454Z Der Testlauf war erfolgreich.
2018-11-19T13:19:53.9781474Z Testausführungszeit: 8,6925 Sekunden
2018-11-19T13:19:54.2519255Z Publishing test results to test run '178'
2018-11-19T13:19:54.2519974Z Test results remaining: 128. Test run id: 178
2018-11-19T13:19:54.3272038Z ##[section]Async Command Start: Publish test results
2018-11-19T13:19:54.6094836Z Published Test Run : https://xxx/_TestManagement/Runs#runId=178&_a=runCharts
2018-11-19T13:19:54.6095328Z ##[section]Async Command End: Publish test results
2018-11-19T13:19:54.6096656Z ##[section]Finishing: VsTest
c# tfs tfs2018
I have a solution with 4 projects (2 regular and 2 test projects). I have a build pipeline in TFS 2018 that builds my solution and checks the code coverage. My problem is that only the code coverage from one project is reported. The code coverage from the other project is missing. All tests are run, though.
The Visual Studio Test step looks like this:
The relevant sections of the .runsettings file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Include>
<ModulePath>.*.dll$</ModulePath>
</Include>
<Exclude>
<ModulePath>.*CPPUnitTestFramework.*</ModulePath>
<ModulePath>.*moq.dll</ModulePath>
<ModulePath>.*Tests.dll</ModulePath>
</Exclude>
</ModulePaths>
<!-- We recommend you do not change the following values: -->
<UseVerifiableInstrumentation>False</UseVerifiableInstrumentation>
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<CollectAspDotNet>False</CollectAspDotNet>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
Here is the log output from the test step:
2018-11-19T13:19:41.2308934Z ##[section]Starting: VsTest - netframework
2018-11-19T13:19:41.2412211Z ==============================================================================
2018-11-19T13:19:41.2412390Z Task : Visual Studio Test
2018-11-19T13:19:41.2412658Z Description : Run unit and functional tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio Test runner. Test frameworks that have a Visual Studio test adapter such as xUnit, NUnit, Chutzpah, etc. can also be run. Tests can be distributed on multiple agents using this task (version 2).
2018-11-19T13:19:41.2412934Z Version : 2.3.28
2018-11-19T13:19:41.2413056Z Author : Microsoft Corporation
2018-11-19T13:19:41.2413412Z Help : More Information
2018-11-19T13:19:41.2413616Z ==============================================================================
2018-11-19T13:19:42.4501863Z Run the tests locally using vstest.console.exe
2018-11-19T13:19:42.4502051Z ========================================================
2018-11-19T13:19:42.4502460Z Test selector : Test assemblies
2018-11-19T13:19:42.4502750Z Test assemblies : * * release * Tests.dll,! * * obj * *
2018-11-19T13:19:42.4503062Z Test filter criteria : null
2018-11-19T13:19:42.4503281Z Search folder : C:agent_work1s
2018-11-19T13:19:42.4503610Z Run settings file : C:agent_work1sMyProjectCodeCoverage.runsettings
2018-11-19T13:19:42.4503933Z Run in parallel : false
2018-11-19T13:19:42.4504212Z Run in isolation : false
2018-11-19T13:19:42.4505649Z Path to custom adapters : C:agent_work1sMyProjectProject2Testsbinrelease
2018-11-19T13:19:42.4505955Z Other console options : null
2018-11-19T13:19:42.4506168Z Code coverage enabled : false
2018-11-19T13:19:42.4506699Z Rerun failed tests: false
2018-11-19T13:19:42.8500173Z VisualStudio version selected for test execution : toolsInstaller
2018-11-19T13:19:43.0554534Z ========================================================
2018-11-19T13:19:43.1339450Z [command]C:agent_work_toolVsTest15.9.1-preview-20181023-04x64toolsnet451Common7IDEExtensionsTestPlatformvstest.console.exe @C:WINDOWSSERVIC~3NETWOR~1AppDataLocalTempc6857b51-ebfd-11e8-a1f3-554a7ebf3861.txt
2018-11-19T13:19:43.3385913Z Microsoft (R) Testausführungs-Befehlszeilentool Version 15.9.1-preview-20181023-04
2018-11-19T13:19:43.3451743Z Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
2018-11-19T13:19:43.3452021Z
2018-11-19T13:19:43.3612218Z vstest.console.exe
2018-11-19T13:19:43.3612440Z "C:agent_work1sMyProjectProject1TestsbinReleaseProject1Tests.dll"
2018-11-19T13:19:43.3612731Z "C:agent_work1sMyProjectProject2TestsbinReleaseProject2Tests.dll"
2018-11-19T13:19:43.3612945Z /Settings:"C:agent_work1sMyProjectCodeCoverage.runsettings"
2018-11-19T13:19:43.3613085Z /logger:"trx"
2018-11-19T13:19:43.3613289Z /TestAdapterPath:"C:agent_work1sMyProjectProject2Testsbinrelease"
2018-11-19T13:19:43.6746135Z Die Testausführung wird gestartet, bitte warten...
2018-11-19T13:19:44.9662159Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.3000
2018-11-19T13:19:44.9663027Z
2018-11-19T13:19:44.9666782Z
2018-11-19T13:19:44.9674700Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-11-19T13:19:44.9677551Z
2018-11-19T13:19:50.3174860Z Bestanden Test1
... lots of other tests ...
2018-11-19T13:19:53.3609732Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.3000
2018-11-19T13:19:53.3610319Z
2018-11-19T13:19:53.3610430Z
2018-11-19T13:19:53.3610840Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-11-19T13:19:53.3611590Z
2018-11-19T13:19:53.8607813Z Bestanden Test2
... more tests ...
2018-11-19T13:19:53.9355517Z Ergebnisdatei: C:agent_work1sTestResultsTFS-BUILD09$_TFS-BUILD09_2018-11-19_14_19_50.trx
2018-11-19T13:19:53.9358179Z
2018-11-19T13:19:53.9451115Z Anlagen:
2018-11-19T13:19:53.9470455Z C:agent_work1sTestResults332a54cb-163b-4b3b-9bd4-2f5a5be70f4eTFS-BUILD09$_TFS-BUILD09 2018-11-19 14_19_44.coverage
2018-11-19T13:19:53.9591330Z
2018-11-19T13:19:53.9709295Z Tests gesamt: 128. Bestanden: 128. Fehler: 0. Übersprungen: 0.
2018-11-19T13:19:53.9741454Z Der Testlauf war erfolgreich.
2018-11-19T13:19:53.9781474Z Testausführungszeit: 8,6925 Sekunden
2018-11-19T13:19:54.2519255Z Publishing test results to test run '178'
2018-11-19T13:19:54.2519974Z Test results remaining: 128. Test run id: 178
2018-11-19T13:19:54.3272038Z ##[section]Async Command Start: Publish test results
2018-11-19T13:19:54.6094836Z Published Test Run : https://xxx/_TestManagement/Runs#runId=178&_a=runCharts
2018-11-19T13:19:54.6095328Z ##[section]Async Command End: Publish test results
2018-11-19T13:19:54.6096656Z ##[section]Finishing: VsTest
c# tfs tfs2018
c# tfs tfs2018
edited Nov 19 '18 at 15:30
gartenriese
asked Nov 19 '18 at 14:37
gartenriesegartenriese
1,35511842
1,35511842
Look at the output of the test step. Are all the tests you're expecting to run being run? Update your question with the logs.
– Daniel Mann
Nov 19 '18 at 15:04
@Daniel Mann: Yes, all tests are run. I checked the log. I will update my question.
– gartenriese
Nov 19 '18 at 15:14
add a comment |
Look at the output of the test step. Are all the tests you're expecting to run being run? Update your question with the logs.
– Daniel Mann
Nov 19 '18 at 15:04
@Daniel Mann: Yes, all tests are run. I checked the log. I will update my question.
– gartenriese
Nov 19 '18 at 15:14
Look at the output of the test step. Are all the tests you're expecting to run being run? Update your question with the logs.
– Daniel Mann
Nov 19 '18 at 15:04
Look at the output of the test step. Are all the tests you're expecting to run being run? Update your question with the logs.
– Daniel Mann
Nov 19 '18 at 15:04
@Daniel Mann: Yes, all tests are run. I checked the log. I will update my question.
– gartenriese
Nov 19 '18 at 15:14
@Daniel Mann: Yes, all tests are run. I checked the log. I will update my question.
– gartenriese
Nov 19 '18 at 15:14
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53376906%2fhow-can-i-get-code-coverage-from-multiple-projects%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53376906%2fhow-can-i-get-code-coverage-from-multiple-projects%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Look at the output of the test step. Are all the tests you're expecting to run being run? Update your question with the logs.
– Daniel Mann
Nov 19 '18 at 15:04
@Daniel Mann: Yes, all tests are run. I checked the log. I will update my question.
– gartenriese
Nov 19 '18 at 15:14