 var excludeIdenticalScreenshots = excludeIdenticalScreenshotsOptionValue != nil
 
 let logsTestPath = logsTestPathOptionValue!
-let testSummariesPlistJson = getTestSummariesPlistJson(logsTestPath: logsTestPath)
+let testSummariesPlistJsons = getTestSummariesPlistJsons(logsTestPath: logsTestPath)
 
 // save the last screenshots if --screenshotsPath option is passed
 if let screenshotsPathOptionValue = screenshotsPathOptionValue {

    }
}


// ====== main ======


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

    var fileCount = 1
    var subDirectory = testSummariesPlistJsons.count > 1 ? "\(fileCount)" : ""

    testSummariesPlistJsons.forEach { testSummariesPlistJson in
        generateJUnitReport(testSummariesPlistJson: testSummariesPlistJson, logsTestPath: logsTestPath, jUnitRepPath: appendSubdirectoryToPath(jUnitReportPathOption, subDirectory: subDirectory) , noCrashLogs: noCrashLogs, lastScreenshotsPath: screenshotsPathOptionValue, screenshotsCount: screenshotsCount, buildUrl: buildUrlOptionValue, workspacePath: workspacePathOptionValue ?? "")
        fileCount += 1
        subDirectory = "\(fileCount)"
    }

}
