Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code coverage #1965

Closed
markelog opened this issue Dec 22, 2014 · 14 comments
Closed

Code coverage #1965

markelog opened this issue Dec 22, 2014 · 14 comments
Labels

Comments

@markelog
Copy link
Member

Evaluate and prototype implementation of code coverage tool. Maybe not even on Core at first, Sizzle?

/cc @timmywil, @mzgol, @gibson042, @jaubourg, @dmethvin

@markelog markelog added the Build label Dec 22, 2014
@markelog
Copy link
Member Author

and /cc @gnarf

@scottgonzalez
Copy link
Member

We already have multiple projects doing this.

@arschmitz @jzaefferer

@arschmitz
Copy link
Member

We use coveralls it was really really noisy at first so we disabled the pr comments ( looks like qunit has as well ) which means we lose a lot of the value. I was just looking at they have notification settings with coverage ranges for them now so this may not be as much of an issue any more.

Previously every new commit on a PR triggered a coverage comment, which was a lot of noise when there was often absolutely no actual change in coverage.

@markelog
Copy link
Member Author

In mobile? Istanbul? In what envs do you run it? And How :-)

@arschmitz
Copy link
Member

@markelog Yes on mobile. We use grunt-coveralls https://www.npmjs.com/package/grunt-coveralls both locally and via travis.

@markelog
Copy link
Member Author

Yeah, grunt-coveralls is a plugin for grunt, not a code coverage tool, and coveralls is service for representation code coverage data, which is also not code coverage tool :-)

Just check it out - you use istanbul on phantom.

@gnarf
Copy link
Member

gnarf commented Dec 23, 2014

getting coverage on jQuery Core would be so.... tricky

so many "forks" that require a specific actual browser to hit...

@gibson042
Copy link
Member

But those problems are apparently solved; istanbul-middleware enables a mode of operation that aggregates results: https://github.com/gotwarlost/istanbul-middleware#client-side-coverage .

So it should be as simple as spinning up a node.js server with istanbul-middleware and making sure that the test swarm gets jquery.js from it, then downloading/looking at the coverage results before tearing down the server when its run is complete.

@timmywil timmywil added this to the Future milestone May 5, 2015
@listepo
Copy link

listepo commented May 16, 2015

+1

@stevepeak
Copy link

Full disclosure I'm the founder of Codecov

We would love to see jQuery use Codecov as its coverage provider. I would love to share about the many reasons why I believe Codecov are great fit and industry leading in code coverage. Anything I can do to help this transition I would make myself very available. Thank you!

@gnarf
Copy link
Member

gnarf commented Jul 19, 2015

Anything I can do to help this transition I would make myself very available.

Help implement it in a PR and I'm sure we can work together on it! A couple of questions:

  • What does it take for us to use it? (we don't use travis)
  • Can we use it in the jenkins / testswarm / qunit setup that we have?
  • Do you have some example reports to look at, could you run it against jQuery yourself and link us to a report?

I'm sure others will have some more questions :)

@stevepeak
Copy link

What does it take for us to use it? (we don't use travis)

Any CI method works. We have two primary uploading methods for javascript: the native method and the global method. I'll look into creating a pull request, I'll mention you when I create it. Thank you @gnarf

Can we use it in the jenkins / testswarm / qunit setup that we have?

Jenkins: yes. Qunit: yes. Testswarm: should (I have not used this before). We do merge coverage reports automatically and keep record of each one. See here for example (Click on the Unified dropdown).

Do you have some example reports to look at, could you run it against jQuery yourself and link us to a report?

I can reference our customer repos, but I have not yet ran coverage against jQuery yet. I will try to attempt this during my pull request.

I'm sure others will have some more questions :)

I'm very happy to help out!

@gnarf
Copy link
Member

gnarf commented Jul 19, 2015

I'm very happy to help out!

Feel free to ping me (gnarf) in freenode IRC #jquery-dev with any questions/help you'd need from me here.

@timmywil timmywil removed this from the Future milestone Nov 17, 2015
@timmywil
Copy link
Member

Closing in favor of tracking in the Roadmap.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

8 participants