Skip to content

Commit f63b8a9

Browse files
authored
test: removes unexpected separator (#215)
Signed-off-by: Allain Magyar <[email protected]>
1 parent 16e9ebd commit f63b8a9

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

E2E/TestFramework/Configuration/TestConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

E2E/TestFramework/Report/AllureReporter.swift

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)