Skip to content

Conversation

HeikkiAlanen
Copy link

Hello,
As a part of our Node.js course we are studying unit testing and tools for measuring code coverage. So I picked your module and added code coverage tool called Istanbul to your module. See https://www.npmjs.org/package/istanbul

Istanbul creates coverage-folder where the results are placed. In coverage/lcov-report folder you can find index.html which provides visual presentation of the code coverage.

To run code coverage tool: npm run-script coverage

@avoidwork
Copy link
Owner

Hi,

Thanks, but this implementation doesn't fit the workflow. Nothing executes npm run-script coverage, so this should be done via grunt, with a module like grunt-istanbul, or grunt-istanbul-coverage. You would then add it to the test definition, such that it's executed during the build process (local & on travis-ci.org).

I've never used istanbul, so I'm curious about it's accuracy. It reports 2/3 functions used, but there is only one?

@avoidwork avoidwork closed this Nov 13, 2014
@avoidwork
Copy link
Owner

Closing due to a lack of response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants