Skip to content

Commit 873692a

Browse files
#60 Add UseNUnitTestSuiteName and UseNUnitTestSuiteType configuration properties
1 parent d468aef commit 873692a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,21 @@ public double? RetryInterval
169169
/// </summary>
170170
public string WarningReportStrategyType { get; set; }
171171

172+
/// <summary>
173+
/// Gets or sets a value indicating whether to use NUnit test name.
174+
/// </summary>
172175
public bool UseNUnitTestName { get; set; }
173176

177+
/// <summary>
178+
/// Gets or sets a value indicating whether to use NUnit test suite (fixture) name.
179+
/// </summary>
180+
public bool UseNUnitTestSuiteName { get; set; }
181+
182+
/// <summary>
183+
/// Gets or sets a value indicating whether to use NUnit test suite (fixture) type.
184+
/// </summary>
185+
public bool UseNUnitTestSuiteType { get; set; }
186+
174187
public bool LogNUnitError { get; set; }
175188

176189
public bool TakeScreenshotOnNUnitError { get; set; }

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuild
7373
if (config.UseNUnitTestName)
7474
builder.UseNUnitTestName();
7575

76+
if (config.UseNUnitTestSuiteName)
77+
builder.UseNUnitTestSuiteName();
78+
79+
if (config.UseNUnitTestSuiteType)
80+
builder.UseNUnitTestSuiteType();
81+
7682
if (config.LogNUnitError)
7783
builder.LogNUnitError();
7884

0 commit comments

Comments
 (0)