Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode keeps generating coverage directory

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?

like image 801
Nathan H Avatar asked May 30 '19 08:05

Nathan H


People also ask

How do I exclude files from code coverage Visual Studio?

To exclude test code from the code coverage results and only include application code, add the ExcludeFromCodeCoverageAttribute attribute to your test class.

How do I hide the Pycache folder in VS Code?

Open Settings UIClick on Add Pattern and type in **/__pycache__ in the Exclude Pattern box and click OK.

What is the .VS Code directory?

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.

How do I stop execution in VS Code?

VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.


1 Answers

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.

like image 133
Jeffrey Bradley Avatar answered Jan 02 '23 21:01

Jeffrey Bradley