Giter VIP home page Giter VIP logo

node-covershot's People

Contributors

athieriot avatar beaugunderson avatar joeferner avatar kunklejr avatar kyokpae 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

Watchers

 avatar  avatar  avatar  avatar

node-covershot's Issues

Support for rewire

For projects that use rewire, it's difficult to replace require() calls with csrequire(). Could you add support for rewire?

Error no data to merge

Followed the steps as on the homepage (apart from jsmeter which will not work)

Resulted in error:

Error: No data to merge
at module.exports (/Users/d.budge/Sites/node-app/test/node_modules/covershot/lib/merge.js:81:11)

Add docs for jscoverage + mocha

I'm using covershot successfully with mocha and TJ's version of node-jscoverage with this simple script.

I did require my fix for printing source lines in #9 before I got source in the HTML report.

Would be great to get that into the docs so people aren't scared off by having to rewrite all the require()s in their tests. :)

[LCOV] Can't have sources is a subdirectory

It appear that the format informations used to create the LCOV output don't take in account the full path of the covered file.

Makes it harder to analyze further if using nested directories.

replace() not working for multiple replacements

I'd like to covershot several directories. From reading the covershot docs, I suppose I should do:

var covershot = require('covershot');

// replace all paths containing a 'routes' component with 'routes-cov'
covershot.replace('routes', 'routes-cov');
covershot.replace('services', 'services-cov');
covershot.replace('email', 'email-cov');

var csrequire = covershot.require.bind(null, require);
var myLibrary = csrequire('../lib/myLibrary');

But when I do this, csrequire doesn't appear to actually be replacing these, and so Node reports errors about failing to find files.

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.