message("running tests in $filename");
$errors += file_run_unit_tests($filename);
}
- message("tests finished with $errors errors");
+ message("tests finished with $errors error" . enc_s($errors));
}
# Call this to unit test wfpl. By default it tests everything, or you can pass
# a space-separated list of the basenames of the files in code/wfpl/unit_tests/
# that you'd like to run.
-function unit_test_wfpl($basenames = 'format') {
+function unit_test_wfpl($basenames = 'format db') {
tem_load('code/wfpl/unit_tests/template.html');
run_unit_tests('code/wfpl/unit_tests', $basenames);
display_messages();