The Jest Quick Coverage is a Visual Studio Code extension designed to streamline the process of generating and capturing test coverage for JavaScript related projects that use Jest as their testing framework. This extension allows developers to select specific test file/s and generate coverage reports, highlighting uncovered lines directly within the VS Code editor for convenient reference and modification.
> Test coverage by selecting file
> Test coverage from code selection
Usage
In Extension settings setup the settings accordingly (check 'Extension Settings' section).
Select the desired test file in the Explorer sidebar.
Can select a single test file or multiple test files.
Right-click on the selection and select the "Get Coverage" option.
The extension will trigger Jest to generate the coverage report and mark uncovered lines within the editor or open coverage report based on your preference.
Features
Selective Coverage: Easily generate test coverage reports for selected file or files using Jest.
Visual Feedback: Uncovered lines are marked within the VS Code editor for quick identification and remediation.
Streamlined Workflow: Simplifies the process of analyzing and improving test coverage within your project.
Requirements
Visual Studio Code
Jest installed and configured in your project
GitBash terminal
Extension Settings
Setup relative path of coverage-final.json.
Coverage view option, inline in vscode or in browser(recommended).
Git Bash path.
The test file format. Default is .spec.ts.
Known Issues
There are no known issues with the current version of the extension. If you encounter any problems or have suggestions for improvement, please submit an issue on GitHub.
Thank you for using the Jest Quick Coverage extension! We hope it enhances your testing workflow and helps you achieve better coverage in your projects. If you find it helpful, consider leaving a review or star.