mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: improved test output formatting
This commit is contained in:

committed by
Alexander Medvednikov

parent
4f173c8900
commit
a0f32f5c29
@ -1,6 +1,5 @@
|
||||
// Build and run files in ./prod/ folder, comparing their output to *.expected.txt files.
|
||||
// (Similar to REPL tests, but in -prod mode.)
|
||||
|
||||
// import os
|
||||
import compiler.tests.repl.runner
|
||||
import benchmark
|
||||
@ -15,15 +14,15 @@ fn test_all_v_prod_files() {
|
||||
bmark.step()
|
||||
fres := runner.run_prod_file(options.wd, options.vexec, file) or {
|
||||
bmark.fail()
|
||||
eprintln( bmark.step_message(err) )
|
||||
eprintln(bmark.step_message_fail(err))
|
||||
assert false
|
||||
continue
|
||||
}
|
||||
bmark.ok()
|
||||
println( bmark.step_message(fres) )
|
||||
println(bmark.step_message_ok(fres))
|
||||
assert true
|
||||
}
|
||||
bmark.stop()
|
||||
println( bmark.total_message('total time spent running PROD files') )
|
||||
println(bmark.total_message('total time spent running PROD files'))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user