Skip to content

Commit dc117a9

Browse files
#64 Add onCleanUpAddArtifactsToNUnitTestContext configuration property
1 parent 1c1d8ad commit dc117a9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Atata.Configuration.Json/JsonConfig`1.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ public double? RetryInterval
200200

201201
public string TakeScreenshotOnNUnitErrorTitle { get; set; }
202202

203+
public bool OnCleanUpAddArtifactsToNUnitTestContext { get; set; }
204+
203205
/// <summary>
204206
/// Gets or sets a value indicating whether to use <see cref="NUnitAggregateAssertionStrategy"/> as the aggregate assertion strategy.
205207
/// </summary>

src/Atata.Configuration.Json/Mapping/JsonConfigMapper.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuild
9797
builder.TakeScreenshotOnNUnitError();
9898
}
9999

100+
if (config.OnCleanUpAddArtifactsToNUnitTestContext)
101+
builder.OnCleanUpAddArtifactsToNUnitTestContext();
102+
100103
if (config.UseNUnitAggregateAssertionStrategy)
101104
builder.UseNUnitAggregateAssertionStrategy();
102105

0 commit comments

Comments
 (0)