We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bf5227 commit e6a9524Copy full SHA for e6a9524
src/coverlet.core/Coverage.cs
@@ -155,7 +155,7 @@ public CoverageResult GetCoverageResult()
155
var coverageResult = new CoverageResult { Identifier = _identifier, Modules = new Modules() };
156
coverageResult.Merge(modules);
157
158
- if (!string.IsNullOrEmpty(_mergeWith) && !string.IsNullOrWhiteSpace(_mergeWith))
+ if (!string.IsNullOrEmpty(_mergeWith) && !string.IsNullOrWhiteSpace(_mergeWith) && File.Exists(_mergeWith))
159
{
160
string json = File.ReadAllText(_mergeWith);
161
coverageResult.Merge(JsonConvert.DeserializeObject<Modules>(json));
0 commit comments