lunarmodules / busted

Elegant Lua unit testing.
https://lunarmodules.github.io/busted/
MIT License
1.39k stars 184 forks source link

How to debug busted test case in vscode #656

Closed ffbh123456 closed 3 years ago

ffbh123456 commented 3 years ago

Can someone give me some suggestions

alerque commented 3 years ago

This doesn't really seem like enough information to understand what you are trying to accomplish. Also wouldn't this be more of a issue for VSCode than any specific library you are working on with it?

ffbh123456 commented 3 years ago

@alerque Hi, After installing busted, I can use the busted command to perform unit tests on the command line, but when I use vscode's lua debug plugin, it prompts me that the busted.runner module cannot be found

ffbh123456 commented 3 years ago

@aiverson Hi, This problem has nothing to do with your busted, it should be a problem with the Lua debug plugin, so I close this issue

Tieske commented 3 years ago

it prompts me that the busted.runner module cannot be found

That probably means you have not set the Lua-path settings correctly, see http://www.thijsschreijer.nl/blog/?p=1025