flutterando / flutter-coverage Goto Github PK
View Code? Open in Web Editor NEWVSCeode Extension for view the code coverage per folder/file in the test view
License: Apache License 2.0
VSCeode Extension for view the code coverage per folder/file in the test view
License: Apache License 2.0
In a multi project directory, even when the coverage path is set in the setting (and coverage extension detects it) when hitting the "run test coverage" play button the console throws a "Directory not found error" and when hitting the "refresh" button a lot of "file not found" are returned
The instructions tell the user to manually run
flutter test --coverage
The better solution is for the user to change user settings
Shift-Ctrl-P Preferences: Open User Settings (JSON)
and as the last setting add
"dart.flutterTestAdditionalArgs": ["--coverage"]
this will mean every time the developer runs a test the code coverage gutters will get updated with the latest coverage information
This part of code runs coverage,
cp.exec(cd ${rootProjectPath} && flutter test --coverage
, (err, out) => {
When e.g. sources are located on disk d: on windows and VSCode is on disk c: then flutter test --coverage is not able to find test folder.
For test purpouses I changed it to:
cp.exec(d: && cd ${rootProjectPath} && flutter test --coverage
, (err, out) => {
and it works.
OS : win 10`
vs code version : 1.71.2
Flutter Coverage version : 0.0.4
settings.json
"flutter-coverage.coverageFilePaths": ["coverage", "packages/**/coverage"]
related to #5
code to re produce https://github.com/maxzod/queen
it should group each package coverage by the package
instead it group them all in single group named after the root directory file name
Hi,
for me it would be nice to have the option to specify files or patterns that will be excluded from the coverage calculation. In my project there are some parts which are very hard to test.
Would be nice if you could implement something :)
In my project, I use private packages. For example:
coverage/ --> coverage of main project
lib/ --> main project
packages/
components/
lib/ --> components
coverage/ --> coverage of components
In flutter coverage panel on testing tab, it only can accept one coverage per time. It can be changed on settings.json:
"flutter-coverage.coverageFilePaths": [
"coverage",
//"packages/cuidarme_components/coverage"
],
When it uses "coverage", show it. The same for the second. But if I try to use both, it only shows the "coverage", not the second.
Is it possible to add to accept 2 or more coverage files instead of one?
Hello,
A little enhancement to improve the lisibility of the coverage tree.
It will be very helpfull to filter files and folder that don't match Low and Sufficient Coverage Threshold. Actually I need to search unfolding all the tree to see if there is some files that need to be covered.
Thanks for this nice Tool.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.