Swift Test Adapter for Visual Studio Code
This extension for Text Explorer UI add ide test capabilities with swift SPM in VSCode and also integrates with CodeLLDB to enable debug capabilities but it doesn't depend from it. Install it only if you want to enable debug capabilities
Example of running debug
Example of run tests
As already mentioned this extension is capable to debug code integrating with the CodeLLDB extension. You can reference their user manual on how to set up the correct liblldb path for the extension to work, then it should work out of the box when selecting the test case to debug.
For instance I've my swift toolchain inside
If you see an error like this
while running a debug session you probably didn't properly set the correct
in the debug console it's actually a problem with the distributed version of
This extension is really new so I suppose bugs will be frequent, feel free to open any issue if you find something or you want to propose a new feature
And also I would really appreciate it if you can find 5 minutes to review this extension in the marketplace
Fails to load tests on startup
This often occurs if you have more swift extensions which launch builds and two concurrent build are issued when the extension loads.
The extension rebuilds the whole project when you load tests
This issue occurs if you have enabled the debugging setting and you launch a
Pro Tip you can build the project with the same flags and debug the executable using the same lldb extension