jest-community / vscode-jest

The optimal flow for Jest based testing in VS Code
MIT License
2.84k stars 294 forks source link

[FEATURE] Add option to show code coverage in bottom status bar #1185

Closed eliasm307 closed 1 month ago

eliasm307 commented 1 month ago

Is your feature request related to a problem? Please describe.

Currently the extension shows coverage as an overlay at the top of the file which is useful, however this means to see the coverage you need to scroll to the top of the file, so it can be annoying for large files because you lose context of where you were.

Describe the solution you'd like

I think there should be an option for coverage to be displayed somewhere where it is always visible and I think the easy solution would be the bottom status bar, since the extension already shows some information there.

Describe alternatives you've considered

Coverage gutters extension shows coverage in the bottom status bar but I cant get it to work for my repo setup.

Additional context Add any other context or screenshots about the feature request here.

eliasm307 commented 1 month ago

Related https://github.com/jest-community/vscode-jest/issues/1186

connectdotz commented 1 month ago

@eliasm307 Please check out the new test coverage interface we implemented in pre-release v6.3.0., which is based on the native VSCode API. I believe it provides a better overview of coverage information compared to showing it at the top of the file or adding it to the status bar. Let me know if it doesn't meet your needs or if you encounter any issues.

eliasm307 commented 1 month ago

@connectdotz the native coverage functionality is even better than I was imagining so my needs are met