File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ open class TestConfiguration: ITestConfiguration {
329
329
let instanceType = ( subclasses [ 0 ] as! ITestConfiguration . Type)
330
330
331
331
// force as own instance
332
- let instance = instanceType. createInstance ( ) as! TestConfiguration
332
+ let instance = instanceType. createInstance ( )
333
333
instance. suiteOutcome. start ( )
334
334
self . instance = instance
335
335
Original file line number Diff line number Diff line change @@ -130,14 +130,7 @@ public class AllureReporter: Reporter {
130
130
131
131
public required init ( ) {
132
132
self . fileManager = FileManager . default
133
-
134
- let targetDir : URL
135
- if let configProvider = TestConfiguration . shared ( ) as? TestConfiguration {
136
- targetDir = configProvider. targetDirectory ( )
137
- } else {
138
- print ( " AllureReporter: CRITICAL - Could not determine targetDirectory from TestConfiguration.shared(). Defaulting to current directory for allure-results. THIS IS LIKELY WRONG. " )
139
- targetDir = URL ( fileURLWithPath: fileManager. currentDirectoryPath)
140
- }
133
+ let targetDir : URL = TestConfiguration . shared ( ) . targetDirectory ( )
141
134
self . allureResultsPath = targetDir. appendingPathComponent ( " allure-results " )
142
135
self . jsonEncoder = JSONEncoder ( )
143
136
self . jsonEncoder. outputFormatting = . prettyPrinted
@@ -243,7 +236,7 @@ public class AllureReporter: Reporter {
243
236
let containerUUID = UUID ( ) . uuidString
244
237
245
238
self . currentAllureFeatureContainer = AllureTestResultContainer (
246
- uuid: containerUUID,
239
+ uuid: containerUUID
247
240
)
248
241
}
249
242
@@ -299,7 +292,7 @@ public class AllureReporter: Reporter {
299
292
300
293
let allureStep = AllureStepResult (
301
294
name: " \( step. context) \( step. action) " ,
302
- stage: . running,
295
+ stage: . running
303
296
)
304
297
305
298
if var parentStep = allureStepStack. last {
You can’t perform that action at this time.
0 commit comments