Skip to content

Commit

Permalink
Update IReport run parameter testSuite -> result
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-goral committed Apr 30, 2020
1 parent 82140a1 commit 851b278
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test_runner/src/main/kotlin/ftl/reports/CostReport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object CostReport : IReport {
reportPath.write(output)
}

override fun run(matrices: MatrixMap, testSuite: JUnitTestResult?, printToStdout: Boolean, args: IArgs) {
override fun run(matrices: MatrixMap, result: JUnitTestResult?, printToStdout: Boolean, args: IArgs) {
val output = generate(matrices)
if (printToStdout) print(output)
write(matrices, output, args)
Expand Down
4 changes: 2 additions & 2 deletions test_runner/src/main/kotlin/ftl/reports/JUnitReport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ object JUnitReport : IReport {
reportPath.write(output)
}

override fun run(matrices: MatrixMap, testSuite: JUnitTestResult?, printToStdout: Boolean, args: IArgs) {
val output = testSuite.xmlToString()
override fun run(matrices: MatrixMap, result: JUnitTestResult?, printToStdout: Boolean, args: IArgs) {
val output = result.xmlToString()

if (printToStdout) {
print(output)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object MatrixResultsReport : IReport {
reportPath.write(output)
}

override fun run(matrices: MatrixMap, testSuite: JUnitTestResult?, printToStdout: Boolean, args: IArgs) {
override fun run(matrices: MatrixMap, result: JUnitTestResult?, printToStdout: Boolean, args: IArgs) {
val output = generate(matrices)
if (printToStdout) print(output)
write(matrices, output, args)
Expand Down
2 changes: 1 addition & 1 deletion test_runner/src/main/kotlin/ftl/reports/util/IReport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ftl.util.resolveLocalRunPath
import java.nio.file.Paths

interface IReport {
fun run(matrices: MatrixMap, testSuite: JUnitTestResult?, printToStdout: Boolean = false, args: IArgs)
fun run(matrices: MatrixMap, result: JUnitTestResult?, printToStdout: Boolean = false, args: IArgs)

fun reportName(): String {
return this::class.java.simpleName
Expand Down

0 comments on commit 851b278

Please sign in to comment.