rename
This commit is contained in:
parent
26652810f9
commit
2f1ec093ba
2
app.lua
2
app.lua
|
@ -463,7 +463,7 @@ function record_error_with_heuristic_location(test_name, err)
|
|||
end
|
||||
|
||||
-- Test_errors will be a table by test name
|
||||
function record_error_with_stack_trace(test_name, err)
|
||||
function record_error_by_test(test_name, err)
|
||||
local err_without_line_number = err:gsub('^[^:]*:[^:]*: ', '')
|
||||
Test_errors[test_name] = debug.traceback(err_without_line_number)
|
||||
end
|
||||
|
|
2
live.lua
2
live.lua
|
@ -281,7 +281,7 @@ function live.run(buf)
|
|||
-- run all tests
|
||||
local globals = live.shallow_copy_all_globals()
|
||||
Test_errors = {}
|
||||
App.run_tests(record_error_with_stack_trace)
|
||||
App.run_tests(record_error_by_test)
|
||||
live.send_to_driver(json.encode(Test_errors))
|
||||
live.restore_all_globals(globals)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue