Open
Description
Not sure on the technical hurdles here, but being able to run a debugger within your unit tests would be awesome.
Busted allows calling the runner from within a regular lua file, so the launcher should be possible:
require 'busted.runner'()
describe("a test", function()
-- tests to here
end)
(see documentation here: https://olivinelabs.com/busted/#usage)
And running it:
lua test.lua
However, when trying to combine the debugger and the above, the debugger gets halted before the first test is actually run. Could be due a limitation of lua51, not sure.