 
 
 
-private func findTestSummariesPlistFile(logsTestPath: String) -> String {
+private func findTestSummariesPlistFiles(logsTestPath: String) -> [String] {
     let summariesPlistSuffix = "TestSummaries.plist"
-    var summariesPlistFile = ""
+    var summariesPlistFiles = [String]()
     var logsTestFiles = [String]()
     let fileManager = FileManager.default
     if fileManager.fileExists(atPath: logsTestPath) {

if let jUnitReportPathOptionValue = jUnitReportPathOptionValue {
    argumentOptionsParser.validateOptionIsNotEmpty(optionName: jUnitReportPathOption, optionValue: jUnitReportPathOptionValue)

    generateJUnitReport(testSummariesPlistJson: testSummariesPlistJson, logsTestPath: logsTestPath, jUnitRepPath: jUnitReportPathOptionValue, noCrashLogs: noCrashLogs, lastScreenshotsPath: screenshotsPathOptionValue, screenshotsCount: screenshotsCount, buildUrl: buildUrlOptionValue, workspacePath: workspacePathOptionValue ?? "")
}

    }
    for file in logsTestFiles {
        if file.hasSuffix(summariesPlistSuffix) {
            summariesPlistFiles.append(logsTestPath + "/" + file)
        }
    }
    return summariesPlistFiles
}

private func getTestSummariesPlistJsons(logsTestPath: String) -> [JSON] {
    var jsons = [JSON]()
    let summariesPlistFiles = findTestSummariesPlistFiles(logsTestPath: logsTestPath)

    summariesPlistFiles.forEach { summariesPlistFile in
        let summariesPlistDict = (NSDictionary(contentsOfFile: summariesPlistFile) as? Dictionary<String, AnyObject>) ?? Dictionary<String, AnyObject>()
        jsons.append(JSON(summariesPlistDict))
    }

    return jsons
}

/**
