This repository is distributing the code by domain packages, following the project document distribution. To get this document access:
Documentacao Do Projeto.pdf
After install the extension you'll can see a new menu item in activity bar with label
Covering. The extension will watch the workspace looking for a file called
lcov.info. Every event with this file will be used to rerender the new test coverage status on vs code.
To use the extension, run you test script and generate de
lcov.info file and you will able to see the coverage status for each line in editor, the actual covered lines percentage and a file tree view with all uncovered lines of your project. To se just what you've changed, click in the option in extension configuration view:
Avaliar com base na branch: <BRANCH_NAME>. You just will see this option if you workspace is in a git repo.
Setting your own project configuration
You can set your own configuration crating a file called
.coveringconfig in the root of your workspace. In this file you can declare an json with the following fields:
"runTestCoverage": "npm run test"
minCoverage: The minimum coverage percentage to pass in pre-push validation.
- Valid values:
refBranch: The branch to compare with the current branch in pre-push validation.
- Valid values: any local branch name.
usePrePushValidation: If the extension will use the pre-push validation.
- Valid values:
lcovFileName: The name of the lcov file to watch.
- Valid values: any file name or glob pattern.
runTestCoverage: The script that will be executed when click to run the extension interface.
- Valid values: string value.
After change this file, the repository will automatically refresh the values of your coverage status base on your last generated