Skip to content

Commit

Permalink
Merge pull request #2266 from ballerina-platform/compiler-test-logs
Browse files Browse the repository at this point in the history
Log compiler test results in the console
  • Loading branch information
TharmiganK authored Jan 8, 2025
2 parents 8d9c012 + 19da092 commit b58e52d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ path = "../native/build/libs/http-native-2.13.0-SNAPSHOT.jar"
groupId = "io.ballerina.stdlib"
artifactId = "mime-native"
version = "2.11.0"
path = "./lib/mime-native-2.11.0-20241209-180600-aa73132.jar"
path = "./lib/mime-native-2.11.0-20241218-125100-e28a03b.jar"

[[platform.java21.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "constraint-native"
version = "1.6.0"
path = "./lib/constraint-native-1.6.0-20241209-172100-2facdca.jar"
path = "./lib/constraint-native-1.6.0-20241218-112400-cd313f2.jar"

[[platform.java21.dependency]]
groupId = "io.netty"
Expand Down
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.11.0-20241209-162400-0c015833"
distribution-version = "2201.11.0-20241218-101200-109f6cc7"

[[package]]
org = "ballerina"
Expand Down
11 changes: 11 additions & 0 deletions compiler-plugin-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ test {
useTestNG()
finalizedBy jacocoTestReport
testLogging.showStandardStreams = true
testLogging {
events "PASSED", "FAILED", "SKIPPED"
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
def startItem = '| ', endItem = ' |'
def repeatLength = startItem.length() + output.length() + endItem.length()
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
}
}
}
}

jacocoTestReport {
Expand Down

0 comments on commit b58e52d

Please sign in to comment.