Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Rework test coverage facility w/istanbul #899

Closed
wants to merge 2 commits into from
Closed

Conversation

saper
Copy link
Member

@saper saper commented Apr 28, 2015

  1. Use istanbul instead of jscoverage
  2. generate nice HTML report with branches
  3. include 'spec.js' tests in the coverage
    reporting - hits/line ratio on index.js ~300
  4. show little coverage summary in the console
    output
  5. do not use spawn and shell to launch
    mocha and coveralls clients - wire reporters
    directly via JavaScript

@saper
Copy link
Member Author

saper commented Apr 28, 2015

This is a quick-and-dirty implementation. Works for me, the code could be nicer probably.

It would be great to instrument bin/node-sass, lib/render.js and include test/cli.js to show actual coverage achieved via black-box commandline testing.

@xzyfer
Copy link
Contributor

xzyfer commented Apr 28, 2015

I'm going to put this off til post 3.0.0.

Could you please squash the commits?

saper added 2 commits April 28, 2015 16:50
If there is no coverage at all we get
an empty global variable and the lcov
empty file may cause coveralls failure.

Use mkdirp() to create lib-cov
@saper
Copy link
Member Author

saper commented Apr 28, 2015

Squashed to two, hopefully more meaningful commits.

@xzyfer xzyfer mentioned this pull request Apr 29, 2015
19 tasks
@xzyfer
Copy link
Contributor

xzyfer commented Apr 29, 2015

Coverage increased (+0.85%) to 93.55%

👍

@xzyfer xzyfer modified the milestones: 3.0, 3.next Apr 29, 2015
@saper saper closed this Apr 29, 2015
@saper saper deleted the istanbul04 branch April 29, 2015 11:11
@saper
Copy link
Member Author

saper commented Apr 29, 2015

Can't reopen this, pls follow up in #910

@xzyfer xzyfer modified the milestone: next.minor Jun 10, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants