GithubHelp home page GithubHelp logo

hooch / vscode-code-coverage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from markis/vscode-code-coverage

0.0 0.0 0.0 679 KB

Boost test coverage and reliability with this easy-to-use code coverage analysis tool

Home Page: https://marketplace.visualstudio.com/items?itemName=markis.code-coverage

License: MIT License

TypeScript 100.00%

vscode-code-coverage's Introduction

Code Coverage

Code Coverage is a powerful Visual Studio Code extension that helps you analyze and improve the test coverage of your codebase. It highlights lines of code that are not covered by tests, providing valuable insights into areas that require additional testing. With Code Coverage, you can easily identify and track the coverage status of your project, improving its overall quality and reliability.

Demo

Features

  • Comprehensive Coverage Analysis: Code Coverage identifies and highlights lines of code that are not covered by tests, allowing you to focus on improving the areas with low coverage.

  • Efficient Resource Usage: With a small memory and processor footprint, Code Coverage seamlessly integrates into your development workflow without impacting your productivity.

  • Support for Multiple lcov File Formats: Code Coverage supports multiple lcov file formats, enabling you to use your language's code coverage tools and seamlessly integrate them with the extension.

Getting Started

To start using Code Coverage, follow these simple steps:

  1. Generate .lcov coverage files using your preferred code coverage tools for your programming language.

  2. In Visual Studio Code, navigate to the extension settings by clicking on the gear icon in the sidebar and selecting "Settings" (or by using the shortcut Ctrl+, on Windows or Cmd+, on Mac).

  3. Locate the "Coverage Location" setting (markiscodecoverage.searchCriteria) and set it to the path where your coverage files are located. The default value is coverage/lcov*.info, but you can customize it to match your project's setup.

  4. Optionally, you can modify the default behavior of Code Coverage by changing the "Enable on Startup" setting (markiscodecoverage.enableOnStartup). By default, Code Coverage is enabled when Visual Studio Code starts, but you can disable this behavior if desired.

  5. Open your project in Visual Studio Code and navigate to the file you want to analyze. Code Coverage will automatically highlight the uncovered lines under the Problems window, providing you with a clear overview of your project's coverage status.

Commands

Code Coverage provides the following commands that you can use to control the display of coverage information. You can also map these commands to custom key bindings in Visual Studio Code to further streamline your workflow.

  • code-coverage.hide: Hides the code coverage overlay, allowing you to focus on your code without the distraction of coverage highlighting.

  • code-coverage.show: Shows the code coverage overlay, highlighting the lines of code that are not covered by tests.

To map these commands to key bindings, refer to the official Visual Studio Code documentation.

Feedback and Contributions

We welcome your feedback and contributions to make Code Coverage even better. If you encounter any issues, have suggestions for improvements, or would like to contribute to the project, please visit our GitHub repository and open an issue or pull request.

License

Code Coverage is released under the MIT License.

About the Author

This extension is developed and maintained by Markis Taylor. Feel free to reach out to me with any questions or feedback you may have.

vscode-code-coverage's People

Contributors

alexhaxe avatar alexkreidler avatar ankon avatar dependabot[bot] avatar gilescope avatar greenkeeper[bot] avatar lnxbil avatar m-flak avatar markis avatar maxim-filimonov avatar scottmacdougall avatar veikkoni avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.