Skip to content

Commit 48b8b86

Browse files
#65 Add onCleanUpAddDirectoryFilesToNUnitTestContext configuration property
1 parent dc117a9 commit 48b8b86

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
@@ -202,6 +202,8 @@ public double? RetryInterval
202202

203203
public bool OnCleanUpAddArtifactsToNUnitTestContext { get; set; }
204204

205+
public string OnCleanUpAddDirectoryFilesToNUnitTestContext { get; set; }
206+
205207
/// <summary>
206208
/// Gets or sets a value indicating whether to use <see cref="NUnitAggregateAssertionStrategy"/> as the aggregate assertion strategy.
207209
/// </summary>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuild
100100
if (config.OnCleanUpAddArtifactsToNUnitTestContext)
101101
builder.OnCleanUpAddArtifactsToNUnitTestContext();
102102

103+
if (config.OnCleanUpAddDirectoryFilesToNUnitTestContext != null)
104+
builder.OnCleanUpAddDirectoryFilesToNUnitTestContext(config.OnCleanUpAddDirectoryFilesToNUnitTestContext);
105+
103106
if (config.UseNUnitAggregateAssertionStrategy)
104107
builder.UseNUnitAggregateAssertionStrategy();
105108

0 commit comments

Comments
 (0)