Giter Site home page Giter Site logo

Comments (15)

travissanderson-wf avatar travissanderson-wf commented on September 21, 2024 4

We are seeing the same thing with our build systems

from coverage.

kevmoo avatar kevmoo commented on September 21, 2024 4

FYI: I'm working hard to get this resolved

I'm almost ready to land the fix (https://codereview.chromium.org/1929063002/) for the blocking issue (dart-archive/vm_service_client#6)

I've already started on migrating the coverage package to this.

from coverage.

kevmoo avatar kevmoo commented on September 21, 2024 1

With this pull request - #108 - we have the ability to connect to a running dart app (with the vm service enabled) and collect LCOV coverage info.

I'll work with @cbracken to review the code. If you're itchy to get coverage working on your app, you could try out the code on your own box.

I've cleaned up the API and the binaries A LOT. Let me know if you miss anything I've removed.

from coverage.

kevmoo avatar kevmoo commented on September 21, 2024

Related - dart-archive/vm_service_client#6

from coverage.

travissanderson-wf avatar travissanderson-wf commented on September 21, 2024

Thanks for the update, I saw movement in the vm_service_client and figured as much but appreciate the post.

from coverage.

kevmoo avatar kevmoo commented on September 21, 2024

We've got the vm_service_client updated.

I'm doing work here - https://github.com/dart-lang/coverage/tree/migration

I'd really like to parse down what coverage does.

Is anyone consuming it for something other than coveralls.io?

from coverage.

pulyaevskiy avatar pulyaevskiy commented on September 21, 2024

I have couple builds for codecov. Would be happy to help

from coverage.

evanweible-wf avatar evanweible-wf commented on September 21, 2024

@kevmoo all of our packages at Workiva use codecov, although we collect coverage via dart_dev. It essentially just combines the two steps from this package (collect and format) into a single task, handles merging coverage if the package has multiple suites, and a few other things like auto-generating an HTML file and generating the HTML report. It's always been brittle though, so I'm not opposed to change. I'm also happy to help!

from coverage.

kevmoo avatar kevmoo commented on September 21, 2024

@evanweible-wf do you have sample code? What format do you use for upload, etc?

from coverage.

evanweible-wf avatar evanweible-wf commented on September 21, 2024

Sure. The reporting to codecov part is easy, they supply a bash script that takes a correctly formatted coverage file (lcov, gcov, json, etc):

pub run dart_dev coverage --no-html
bash <(curl -s https://codecov.io/bash) -f coverage/coverage.lcov

https://github.com/Workiva/w_transport/blob/master/.travis.yml#L13-L14

The coverage task in dart_dev handles running the coverage executables across a set of test files and producing a single .lcov file: https://github.com/Workiva/dart_dev/blob/master/lib/src/tasks/coverage/api.dart

from coverage.

donny-dont avatar donny-dont commented on September 21, 2024

@kevmoo I use https://aircover.co/ for my stuff. It takes in lcov and then pushes it to the server. The pushing is done in a plugin so the lcov just needs to be hanging out somewhere on the disk.

from coverage.

cbracken avatar cbracken commented on September 21, 2024

For anyone who needs SDK 1.16.0 support straight away while #108 is in review, I've pushed a branch containing the version we use inside Google for code coverage. It's a fairly minimal patch on a slightly older release than what's on master, but has the advantage of being entirely backward-compatible and feature identical to the currently released version while working on newer SDKs.

Will discuss with @dgrove and @nex3 early next week to decide on the approach we want to take to get something released.

from coverage.

cbracken avatar cbracken commented on September 21, 2024

Closed by 521c4e5. Released in version 0.7.4.

from coverage.

alexander-doroshko avatar alexander-doroshko commented on September 21, 2024

Verified that coverage works again in WebStorm 2016.2, thanks a lot!

from coverage.

cbracken avatar cbracken commented on September 21, 2024

Thanks for verifying!

from coverage.

Related Issues (20)

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.