incr ::num_tests
set details {}
- lappend details $::curfile
- lappend details $::tags
- lappend details $name
+ lappend details "$name in $::curfile"
send_data_packet $::test_server_fd testing $name
lappend ::tests_failed $details
incr ::num_failed
- send_data_packet $::test_server_fd err $name
+ send_data_packet $::test_server_fd err [join $details "\n"]
} else {
# Re-raise, let handler up the stack take care of this.
error $error $::errorInfo
lappend ::tests_failed $details
incr ::num_failed
- send_data_packet $::test_server_fd err $name
+ send_data_packet $::test_server_fd err [join $details "\n"]
}
}
puts " $time seconds - $name"
}
if {[llength $::failed_tests]} {
- puts "!!! WARNING: The following tests failed\n"
+ puts "\n[colorstr bold-red {!!! WARNING}] The following tests failed:\n"
foreach failed $::failed_tests {
puts "*** $failed"
}
start_server {tags {"other"}} {
+ if {$::force_failure} {
+ # This is used just for test suite development purposes.
+ test {Failing test} {
+ format err
+ } {ok}
+ }
+
test {SAVE - make sure there are all the types as values} {
# Wait for a background saving in progress to terminate
waitForBgsave r
test {Perform a final SAVE to leave a clean DB on disk} {
r save
} {OK}
-
- if {$::force_failure} {
- # This is used just for test suite development purposes.
- test {Failing test} {
- format err
- } {ok}
- }
}