We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34c4e50 + 69fecaf commit b54c93cCopy full SHA for b54c93c
src/coverlet.core/Coverage.cs
@@ -151,7 +151,7 @@ public CoverageResult GetCoverageResult()
151
}
152
153
var coverageResult = new CoverageResult { Identifier = _identifier, Modules = modules };
154
- if (!string.IsNullOrEmpty(_mergeWith) && !string.IsNullOrWhiteSpace(_mergeWith))
+ if (!string.IsNullOrEmpty(_mergeWith) && !string.IsNullOrWhiteSpace(_mergeWith) && File.Exists(_mergeWith))
155
{
156
string json = File.ReadAllText(_mergeWith);
157
coverageResult.Merge(JsonConvert.DeserializeObject<Modules>(json));
0 commit comments