application.backwardCompatibility.CompatibilityReport.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of specmatic-executable Show documentation
Show all versions of specmatic-executable Show documentation
Command-line standalone executable jar for Specmatic
package application.backwardCompatibility
class CompatibilityReport(results: List) {
val report: String
val exitCode: Int
init {
val failed: Boolean = results.any { it == CompatibilityResult.FAILED }
val failedCount = results.count { it == CompatibilityResult.FAILED }
val passedCount = results.count { it == CompatibilityResult.PASSED }
report = "Files checked: ${results.size} (Passed: ${passedCount}, Failed: $failedCount)"
exitCode = if(failed) 1 else 0
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy