show count of test failures

This commit is contained in:
Kartik K. Agaram 2023-04-01 18:13:44 -07:00
parent af239935ce
commit d0d39797cf
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ function App.run_tests_and_initialize()
Test_errors = {}
App.run_tests()
if #Test_errors > 0 then
error('There were test failures:\n\n'..table.concat(Test_errors))
error(('There were %d test failures:\n\n%s'):format(#Test_errors, table.concat(Test_errors)))
end
App.disable_tests()
App.initialize_globals()