I don't know what changed recently, but every time I open a folder in vscode, even without running anything (just looking at the files), a coverage folder is generated.
What happened? How do I stop that?
To exclude test code from the code coverage results and only include application code, add the ExcludeFromCodeCoverageAttribute attribute to your test class.
Open Settings UIClick on Add Pattern and type in **/__pycache__ in the Exclude Pattern box and click OK.
Note: A VS Code "workspace" is usually just your project root folder. Workspace settings as well as debugging and task configurations are stored at the root in a .vscode folder. You can also have more than one root folder in a VS Code workspace through a feature called Multi-root workspaces.
VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.
I was having the same issue and it seems to be a side effect of Mocha sidebar extension on my machine. After disabling it, I am no longer getting a coverage directory created.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With