Skip to content

Commit 8a6ef36

Browse files
test
1 parent 18686a4 commit 8a6ef36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/coverlet.core.coverage.tests/Coverage/CoverageTests.AutoProps.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void SkipInheritingRecordsWithProperties(bool skipAutoProps)
162162
string path = Path.GetTempFileName();
163163
try
164164
{
165-
FunctionExecutor.Run(async (string[] parameters) =>
165+
FunctionExecutor.RunInProcess(async (string[] parameters) =>
166166
{
167167
CoveragePrepareResult coveragePrepareResult = await TestInstrumentationHelper.Run<ClassWithInheritingRecordsAndAutoProperties>(instance =>
168168
{
@@ -176,6 +176,7 @@ public void SkipInheritingRecordsWithProperties(bool skipAutoProps)
176176
if (skipAutoProps)
177177
{
178178
TestInstrumentationHelper.GetCoverageResult(path)
179+
.GenerateReport(show: true)
179180
.Document("Instrumentation.AutoProps.cs")
180181
.AssertNonInstrumentedLines(BuildConfiguration.Debug, 39, 39)
181182
.AssertNonInstrumentedLines(BuildConfiguration.Release, 39, 39)
@@ -186,6 +187,7 @@ public void SkipInheritingRecordsWithProperties(bool skipAutoProps)
186187
else
187188
{
188189
TestInstrumentationHelper.GetCoverageResult(path)
190+
.GenerateReport(show: true)
189191
.Document("Instrumentation.AutoProps.cs")
190192
.AssertLinesCovered(BuildConfiguration.Debug, (39, 1), (41, 1), (44, 1), (45, 1), (46, 1))
191193
.AssertLinesCovered(BuildConfiguration.Release, (39, 1), (41, 1), (45, 1));

0 commit comments

Comments
 (0)