You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Fine Code Coverage in my solution with no run settings files, just configuration through the Visual Studio extension options and csproj files themselves.
I've set the Common options for IncludeReferencedProjects and IncludeTestAssembly to false.
I've added <FCCExcludeFromCodeCoverage/> within a <PropertyGroup> element in each of my csproj test projects
Steps to recreate
?
Current behavior
Currently all my test projects are excluded (as well as one non-test project which I've set with <FCCExcludeFromCodeCoverage/>), with the exception of one (MyProject.Data.Tests).
Expected behavior
The remaining test project should be excluded as well.
Side Notes
The test project still showing in the report is not unique from my others...it has <FCCExcludeFromCodeCoverage/> as well as <IsTestProject>true</IsTestProject> within it's first <PropertyGroup> section.
FCC Log
Fine Code Coverage 12/13/2023 12:53:42 PM: See option RunMsCodeCoverage for a better ( Beta ) experience. https://github.com/FortuneN/FineCodeCoverage/blob/master/README.md
Fine Code Coverage 12/13/2023 12:53:42 PM: Coverage collected when tests finish. RunInParallel option true for immediate
Fine Code Coverage 12/13/2023 12:53:54 PM: ================================== START ==================================
Fine Code Coverage 12/13/2023 12:53:54 PM: Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\MyProject.Data.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\MyProject.Data.Tests.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\MyProject.Data.Tests.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\MyProject.Domain.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Domain.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\CoverletSourceRootsMapping_MyProject.Data.Tests -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\CoverletSourceRootsMapping_MyProject.Data.Tests
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\MyProject.Data.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\MyProject.Data.Tests.runtimeconfig.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.runtimeconfig.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\MyProject.Domain.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Domain.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\MyProject.Data.Tests.deps.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.deps.json
File synchronization duration : 00:00:00.0575211
Fine Code Coverage 12/13/2023 12:53:54 PM: Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.runtimeconfig.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.runtimeconfig.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Data.Tests.runtimeconfig.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.runtimeconfig.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\CoverletSourceRootsMapping_MyProject.Api.Tests -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\CoverletSourceRootsMapping_MyProject.Api.Tests
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.exe -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.exe
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Data.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Infrastructure.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Infrastructure.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Data.Tests.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Data.Tests.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Domain.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Domain.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Tests.Common.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Tests.Common.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.Tests.deps.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.Tests.deps.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.Tests.runtimeconfig.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.Tests.runtimeconfig.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Data.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.deps.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.deps.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Infrastructure.Tests.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Data.Tests.deps.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.deps.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Infrastructure.Tests.deps.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.deps.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Tests.Common.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Tests.Common.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Infrastructure.Tests.runtimeconfig.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.runtimeconfig.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Infrastructure.Tests.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.Tests.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.Tests.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Domain.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Domain.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\MyProject.Api.Tests.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.Tests.dll
File synchronization duration : 00:00:00.0971349
Fine Code Coverage 12/13/2023 12:53:54 PM: Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Data.Tests.runtimeconfig.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.runtimeconfig.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Infrastructure.Tests.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Infrastructure.Tests.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Infrastructure.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Infrastructure.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Api.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Data.Tests.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Data.Tests.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Domain.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Domain.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Tests.Common.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Tests.Common.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Api.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Api.runtimeconfig.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.runtimeconfig.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Api.deps.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.deps.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Domain.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Domain.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Data.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Infrastructure.Tests.deps.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.deps.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Tests.Common.dll -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Tests.Common.dll
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Data.pdb -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.pdb
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Api.exe -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.exe
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Data.Tests.deps.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.deps.json
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\CoverletSourceRootsMapping_MyProject.Infrastructure.Tests -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\CoverletSourceRootsMapping_MyProject.Infrastructure.Tests
Copy : C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\MyProject.Infrastructure.Tests.runtimeconfig.json -> C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.runtimeconfig.json
File synchronization duration : 00:00:00.0946114
Fine Code Coverage 12/13/2023 12:53:54 PM: Run Coverlet (MyProject.Data.Tests)
Fine Code Coverage 12/13/2023 12:53:54 PM: Coverlet Run (MyProject.Data.Tests) Arguments
"C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.dll"
--format "cobertura"
--exclude-by-file "**/Migrations/*"
--exclude-by-attribute "GeneratedCode"
--target "dotnet"
--threshold-type line
--threshold-stat total
--threshold 0
--output "C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Data.Tests.coverage.xml"
--targetargs "test ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Data.Tests.dll"" --nologo --blame --results-directory ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output"" --diag ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output/diagnostics.log"" "
Fine Code Coverage 12/13/2023 12:53:58 PM: Coverlet Run (MyProject.Data.Tests)
Starting test execution, please wait...
Logging Vstest Diagnostics in file: C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\diagnostics.log
A total of 1 test files matched the specified pattern.
Passed! - Failed: 0, Passed: 99, Skipped: 0, Total: 99, Duration: 570 ms - MyProject.Data.Tests.dll (net6.0)
Calculating coverage result...
Generating report 'C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Data.Tests.coverage.xml'
+-------------------------+--------+--------+--------+
| Module | Line | Branch | Method |
+-------------------------+--------+--------+--------+
| MyProject.Data | 93.08% | 91.66% | 95% |
+-------------------------+--------+--------+--------+
| MyProject.Domain | 8.94% | 3.57% | 11.16% |
+-------------------------+--------+--------+--------+
+---------+--------+--------+--------+
| | Line | Branch | Method |
+---------+--------+--------+--------+
| Total | 43.57% | 53.12% | 24.31% |
+---------+--------+--------+--------+
| Average | 51.01% | 47.61% | 53.08% |
+---------+--------+--------+--------+
Fine Code Coverage 12/13/2023 12:53:58 PM: Completed coverage for (MyProject.Data.Tests) : 00:00:03.6545959
Fine Code Coverage 12/13/2023 12:53:58 PM: Run Coverlet (MyProject.Api.Tests)
Fine Code Coverage 12/13/2023 12:53:58 PM: Coverlet Run (MyProject.Api.Tests) Arguments
"C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.Tests.dll"
--format "cobertura"
--exclude "[MyProject.Infrastructure.Tests]*"
--exclude "[MyProject.Tests.Common]*"
--exclude-by-file "**/Migrations/*"
--exclude-by-attribute "GeneratedCode"
--target "dotnet"
--threshold-type line
--threshold-stat total
--threshold 0
--output "C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Api.Tests.coverage.xml"
--targetargs "test ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Api.Tests.dll"" --nologo --blame --results-directory ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output"" --diag ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output/diagnostics.log"" "
Fine Code Coverage 12/13/2023 12:54:04 PM: Coverlet Run (MyProject.Api.Tests)
Starting test execution, please wait...
Logging Vstest Diagnostics in file: C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\diagnostics.log
A total of 1 test files matched the specified pattern.
Passed! - Failed: 0, Passed: 86, Skipped: 0, Total: 86, Duration: 561 ms - MyProject.Api.Tests.dll (net6.0)
Calculating coverage result...
Generating report 'C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Api.Tests.coverage.xml'
+---------------------------------+--------+--------+--------+
| Module | Line | Branch | Method |
+---------------------------------+--------+--------+--------+
| MyProject.Api | 79.22% | 64.23% | 84.34% |
+---------------------------------+--------+--------+--------+
| MyProject.Data | 0% | 0% | 0% |
+---------------------------------+--------+--------+--------+
| MyProject.Data.Tests | 0% | 0% | 0% |
+---------------------------------+--------+--------+--------+
| MyProject.Domain | 40.32% | 5.95% | 56.97% |
+---------------------------------+--------+--------+--------+
| MyProject.Infrastructure | 0% | 0% | 0% |
+---------------------------------+--------+--------+--------+
+---------+--------+--------+--------+
| | Line | Branch | Method |
+---------+--------+--------+--------+
| Total | 31.56% | 26.15% | 47.72% |
+---------+--------+--------+--------+
| Average | 23.9% | 14.03% | 28.26% |
+---------+--------+--------+--------+
Fine Code Coverage 12/13/2023 12:54:04 PM: Completed coverage for (MyProject.Api.Tests) : 00:00:06.0891182
Fine Code Coverage 12/13/2023 12:54:04 PM: Run Coverlet (MyProject.Infrastructure.Tests)
Fine Code Coverage 12/13/2023 12:54:04 PM: Coverlet Run (MyProject.Infrastructure.Tests) Arguments
"C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.dll"
--format "cobertura"
--exclude "[MyProject.Data.Tests]*"
--exclude "[MyProject.Tests.Common]*"
--exclude-by-file "**/Migrations/*"
--exclude-by-attribute "GeneratedCode"
--target "dotnet"
--threshold-type line
--threshold-stat total
--threshold 0
--output "C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Infrastructure.Tests.coverage.xml"
--targetargs "test ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\build-output\MyProject.Infrastructure.Tests.dll"" --nologo --blame --results-directory ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output"" --diag ""C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output/diagnostics.log"" "
Fine Code Coverage 12/13/2023 12:54:10 PM: Coverlet Run (MyProject.Infrastructure.Tests)
Starting test execution, please wait...
Logging Vstest Diagnostics in file: C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\diagnostics.log
A total of 1 test files matched the specified pattern.
Nam quis nulla. Integer malesuada. In in enim a arcu imperdiet malesuada. Sed vel lectus. Donec odio urna, tempus molestie, porttitor ut, iaculis quis, sem. Phasellus rhoncus. Aenean id metus id velit ullamcorper pulvinar. Vestibulum fermentum tortor id mi. Pellentesque ipsum. Nulla non arcu lacinia neque faucibus fringilla. Nulla non lectus sed nisl molestie malesuada. Proin in tellus sit amet nibh dignissim sagittis. Vivamus luctus egestas leo. Maecenas sollicitudin. Nullam rhoncus aliquam metus. Etiam egestas wisi a erat.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam feugiat, turpis at pulvinar vulputate, erat libero tristique tellus, nec bibendum odio risus sit amet ante. Aliquam erat volutpat. Nunc auctor. Mauris pretium quam et urna. Fusce nibh. Duis risus. Curabitur sagittis hendrerit ante. Aliquam erat volutpat. Vestibulum erat nulla, ullamcorper nec, rutrum non, nonummy ac, erat. Duis condimentum augue id magna semper rutrum. Nullam justo enim, consectetuer nec, ullamcorper ac, vestibulum in, elit. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Fusce consectetuer risus a nunc. Aliquam ornare wisi eu metus. Integer pellentesque quam vel velit. Duis pulvinar.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi gravida libero nec velit. Morbi scelerisque luctus velit. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. Proin mattis lacinia justo. Vestibulum facilisis auctor urna. Aliquam in lorem sit amet leo accumsan lacinia. Integer rutrum, orci vestibulum ullamcorper ultricies, lacus quam ul
Passed! - Failed: 0, Passed: 103, Skipped: 0, Total: 103, Duration: 1 s - MyProject.Infrastructure.Tests.dll (net6.0)
Calculating coverage result...
Generating report 'C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Infrastructure.Tests.coverage.xml'
+---------------------------------+--------+--------+--------+
| Module | Line | Branch | Method |
+---------------------------------+--------+--------+--------+
| MyProject.Api | 27.47% | 0.72% | 5.69% |
+---------------------------------+--------+--------+--------+
| MyProject.Data | 0% | 0% | 0% |
+---------------------------------+--------+--------+--------+
| MyProject.Domain | 64.51% | 13.09% | 80.23% |
+---------------------------------+--------+--------+--------+
| MyProject.Infrastructure | 92.22% | 75.71% | 94.2% |
+---------------------------------+--------+--------+--------+
+---------+--------+--------+--------+
| | Line | Branch | Method |
+---------+--------+--------+--------+
| Total | 45.82% | 25.44% | 49.53% |
+---------+--------+--------+--------+
| Average | 46.05% | 22.38% | 45.03% |
+---------+--------+--------+--------+
Fine Code Coverage 12/13/2023 12:54:11 PM: Completed coverage for (MyProject.Infrastructure.Tests) : 00:00:06.6181803
Fine Code Coverage 12/13/2023 12:54:11 PM: ReportGenerator Run Arguments [reporttype:Cobertura]
"-targetdir:C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output"
"-reports:C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Data.Tests.coverage.xml;C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Api.Tests.coverage.xml;C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Infrastructure.Tests.coverage.xml"
"-reporttypes:Cobertura"
Fine Code Coverage 12/13/2023 12:54:11 PM: ReportGenerator Run [reporttype:Cobertura]
2023-12-13T12:54:11: Arguments
2023-12-13T12:54:11: -targetdir:C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output
2023-12-13T12:54:11: -reports:C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Data.Tests.coverage.xml;C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Api.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Api.Tests.coverage.xml;C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Infrastructure.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\MyProject.Infrastructure.Tests.coverage.xml
2023-12-13T12:54:11: -reporttypes:Cobertura
2023-12-13T12:54:11: Writing report file 'C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\Cobertura.xml'
2023-12-13T12:54:11: Report generation took 0.2 seconds
Fine Code Coverage 12/13/2023 12:54:11 PM: ReportGenerator Run Arguments [reporttype:HtmlInline_AzurePipelines]
"-targetdir:C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output"
"-reports:C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\Cobertura.xml"
"-plugins:c:\users\bking\appdata\local\microsoft\visualstudio\17.0_fef91f78\extensions\1fdlpcha.53x\ReportGeneratorPlugins.dll"
"-reporttypes:FccLight"
"riskHotspotsAnalysisThresholds:metricThresholdForCyclomaticComplexity=30"
"riskHotspotsAnalysisThresholds:metricThresholdForCrapScore=15"
"riskHotspotsAnalysisThresholds:metricThresholdForNPathComplexity=200"
Fine Code Coverage 12/13/2023 12:54:12 PM: ReportGenerator Run [reporttype:HtmlInline_AzurePipelines]
2023-12-13T12:54:11: Arguments
2023-12-13T12:54:11: -targetdir:C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output
2023-12-13T12:54:11: -reports:C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\Cobertura.xml
2023-12-13T12:54:11: -plugins:c:\users\bking\appdata\local\microsoft\visualstudio\17.0_fef91f78\extensions\1fdlpcha.53x\ReportGeneratorPlugins.dll
2023-12-13T12:54:11: -reporttypes:FccLight
2023-12-13T12:54:11: riskHotspotsAnalysisThresholds:metricThresholdForCyclomaticComplexity=30
2023-12-13T12:54:11: riskHotspotsAnalysisThresholds:metricThresholdForCrapScore=15
2023-12-13T12:54:11: riskHotspotsAnalysisThresholds:metricThresholdForNPathComplexity=200
2023-12-13T12:54:12: Writing report file 'C:\Users\bking\code\MyRepo\MyAPI\src\MyProject.Data.Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\index.html'
2023-12-13T12:54:12: Report generation took 0.2 seconds
Fine Code Coverage 12/13/2023 12:54:12 PM: Processing cobertura
Fine Code Coverage 12/13/2023 12:54:12 PM: Processing report
Fine Code Coverage 12/13/2023 12:54:12 PM: ================================== DONE ==================================
The text was updated successfully, but these errors were encountered:
FCC looks for <FCCExcludeFromCodeCoverage/> in direct references and not transitive references. If you add a reference to MyProject.Data.Tests from MyProject.Api.Tests.dll it would be excluded.
Yep - worked just fine. Thanks @tonyhallett
I don't mind keeping the logic the same, as long as we update the documentation to make it a little more clear. I can add a PR for it if desired, or we can change the logic. Either is fine by me.
Installed product versions
Description
I'm using Fine Code Coverage in my solution with no run settings files, just configuration through the Visual Studio extension options and csproj files themselves.
IncludeReferencedProjects
andIncludeTestAssembly
to false.<FCCExcludeFromCodeCoverage/>
within a<PropertyGroup>
element in each of my csproj test projectsSteps to recreate
?
Current behavior
Currently all my test projects are excluded (as well as one non-test project which I've set with
<FCCExcludeFromCodeCoverage/>
), with the exception of one (MyProject.Data.Tests
).Expected behavior
The remaining test project should be excluded as well.
Side Notes
<FCCExcludeFromCodeCoverage/>
as well as<IsTestProject>true</IsTestProject>
within it's first<PropertyGroup>
section.FCC Log
The text was updated successfully, but these errors were encountered: