mirror of
https://github.com/apple/pkl.git
synced 2026-03-27 19:41:18 +01:00
Improve testing with stats and errors per test section (#498)
* Emojis are moves to the left to be aligned * A summary line is added with test counts * Facts and Examples are grouped under their own section
This commit is contained in:
@@ -60,13 +60,16 @@ constructor(
|
||||
evaluator.use {
|
||||
var failed = false
|
||||
val moduleNames = mutableSetOf<String>()
|
||||
for (moduleUri in sources) {
|
||||
for ((idx, moduleUri) in sources.withIndex()) {
|
||||
try {
|
||||
val results = evaluator.evaluateTest(uri(moduleUri), testOptions.overwrite)
|
||||
if (!failed) {
|
||||
failed = results.failed()
|
||||
}
|
||||
SimpleReport().report(results, consoleWriter)
|
||||
if (sources.size > 1 && idx != sources.size - 1) {
|
||||
consoleWriter.append('\n')
|
||||
}
|
||||
consoleWriter.flush()
|
||||
val junitDir = testOptions.junitDir
|
||||
if (junitDir != null) {
|
||||
|
||||
Reference in New Issue
Block a user