Git Product home page Git Product logo

flutter-coverage's People

Contributors

deividwillyan avatar dtodt avatar jacobaraujo7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flutter-coverage's Issues

File not found when trying to run coverage from test panel

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

Screen.Recording.2023-04-03.at.14.15.17.mov
Screen.Recording.2023-04-03.at.14.18.51.mov

Update doco to automatically generate coverage

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

Run coverage command does not work if project is on different disk than VSCode

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.

monom repo coverage is not working properly

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

image

instead it group them all in single group named after the root directory file name

image

  • by clicking on any one of them it cant open the source of the selected file and show this message

image

Accept 2 or more coverage files

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?

image

Enhancement : Add filter like test explorer

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.

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.