-
Notifications
You must be signed in to change notification settings - Fork 392
Description
Hi,
For our project using Coverlet 2.0 to get the code coverage results, thank you for such a nice Library.
Between calculating coverage results and generating the report it takes approximately 6 minutes on average. Our average build time has gone up from 3 minutes to 11+ minutes. Is there any way in reducing the Calculating Code Coverage and Report Generation time. With 1.0 we did not have this problem, the overall time for unit tests and code coverage was not more than 3 minutes.
Recent Build Log output for ref:
2018-06-13T13:36:41.7491920Z Step 4/15 : RUN /bin/bash -c "dotnet --version dotnet sln ./MyProjectName.sln remove docker-compose.dcproj dotnet restore ./MyProjectName.sln dotnet publish ./MyProjectName.sln --configuration Release -o ./obj/Docker/publish dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration Release --no-build ./tests/Services/UnitTests/UnitTests.csproj if [[ -f "/build/tests/Services/UnitTests/coverage.xml" ]]; then cp -f -T /build/tests/Services/UnitTests/coverage.xml /build/src/Services/MyProject/MyProject.API/obj/Docker/publish/API_UnitTests_coverage.xml; fi"
...
2018-06-13T13:38:18.2159990Z Microsoft (R) Test Execution Command Line Tool Version 15.3.0-preview-20170628-02
2018-06-13T13:38:18.2174940Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-06-13T13:38:18.2181180Z
2018-06-13T13:38:18.3384270Z Starting test execution, please wait...
2018-06-13T13:38:21.3001400Z [39;49m[xUnit.net 00:00:02.1583989] Discovering: UnitTests
2018-06-13T13:38:21.4789480Z [39;49m[39;49m[xUnit.net 00:00:02.3576858] Discovered: UnitTests
2018-06-13T13:38:21.4856690Z [39;49m[39;49m[xUnit.net 00:00:02.3651608] Starting: UnitTests
2018-06-13T13:40:56.2712730Z [39;49m[39;49m[xUnit.net 00:02:37.1488980] Finished: UnitTests
2018-06-13T13:40:56.4501810Z [39;49m
2018-06-13T13:40:56.4518150Z [39;49mTotal tests: 610. Passed: 610. Failed: 0. Skipped: 0.
2018-06-13T13:40:56.4534620Z [39;49m[39;49m[32mTest Run Successful.
2018-06-13T13:40:56.4549900Z [39;49m[39;49mTest execution time: 2.6347 Minutes
2018-06-13T13:40:56.5515730Z [39;49m[?1h=
2018-06-13T13:40:56.5528900Z Calculating coverage result...
2018-06-13T13:46:45.9403570Z Generating report '/build/tests/Services/UnitTests/coverage.xml'
...
2018-06-13T13:46:46.5420020Z -- Report generation completed