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 {
329329 let instanceType = ( subclasses [ 0 ] as! ITestConfiguration . Type)
330330
331331 // force as own instance
332- let instance = instanceType. createInstance ( ) as! TestConfiguration
332+ let instance = instanceType. createInstance ( )
333333 instance. suiteOutcome. start ( )
334334 self . instance = instance
335335
Original file line number Diff line number Diff line change @@ -130,14 +130,7 @@ public class AllureReporter: Reporter {
130130
131131 public required init ( ) {
132132 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 ( )
141134 self . allureResultsPath = targetDir. appendingPathComponent ( " allure-results " )
142135 self . jsonEncoder = JSONEncoder ( )
143136 self . jsonEncoder. outputFormatting = . prettyPrinted
@@ -243,7 +236,7 @@ public class AllureReporter: Reporter {
243236 let containerUUID = UUID ( ) . uuidString
244237
245238 self . currentAllureFeatureContainer = AllureTestResultContainer (
246- uuid: containerUUID,
239+ uuid: containerUUID
247240 )
248241 }
249242
@@ -299,7 +292,7 @@ public class AllureReporter: Reporter {
299292
300293 let allureStep = AllureStepResult (
301294 name: " \( step. context) \( step. action) " ,
302- stage: . running,
295+ stage: . running
303296 )
304297
305298 if var parentStep = allureStepStack. last {
You can’t perform that action at this time.
0 commit comments