diff --git a/build.proj b/build.proj index 3ed745389..9eb936186 100644 --- a/build.proj +++ b/build.proj @@ -24,7 +24,7 @@ - + diff --git a/src/coverlet.core/Coverage.cs b/src/coverlet.core/Coverage.cs index 3b912d891..fb5b67fc6 100644 --- a/src/coverlet.core/Coverage.cs +++ b/src/coverlet.core/Coverage.cs @@ -209,7 +209,11 @@ private void CalculateCoverage() { if (!File.Exists(result.HitsFilePath)) { - _logger.LogWarning($"Hits file:'{result.HitsFilePath}' not found for module: '{result.Module}'"); + // Hits file could be missed mainly for two reason + // 1) Issue during module Unload() + // 2) Instrumented module is never loaded or used so we don't have any hit to register and + // module tracker is never used + _logger.LogVerbose($"Hits file:'{result.HitsFilePath}' not found for module: '{result.Module}'"); continue; }