-
Notifications
You must be signed in to change notification settings - Fork 2k
Adding coverage report for server-side tests using istanbul #811
Conversation
@ilanbiala please go ahead and commit your coveralls to this PR |
LGTM. Really slick! I really like the initializing status 👍 |
lol cool |
@lirantal I won't be able to test anything until the weekend, so until then if you want to take a crack at it with Coveralls' guide, go for it. |
@ilanbiala so let's merge this PR and we can later create a new one to extend the local coverage we're running with an integration to coveralls. |
@sielay @abhijt-zanak maybe you also have something to add? |
@lirantal I'd rather add it all at once. I don't think people are really gonna benefit from just having coverage in the terminal compared to having Coveralls running for them. |
f7a20d0
to
8e2cda1
Compare
@ilanbiala WDYT? |
@@ -3,6 +3,7 @@ | |||
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/meanjs/mean?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | |||
[![Build Status](https://travis-ci.org/meanjs/mean.svg?branch=master)](https://travis-ci.org/meanjs/mean) | |||
[![Dependencies Status](https://david-dm.org/meanjs/mean.svg)](https://david-dm.org/meanjs/mean) | |||
[![Coverage Status](https://coveralls.io/repos/meanjs/mean/badge.svg?branch=master&service=github)](https://coveralls.io/github/meanjs/mean?branch=coveralls-code-coverage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lirantal The .svg is displaying from the master branch but the link is going to the coveralls-code-coverage branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! that's probably a leftover from taking README update off of ilan's branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's also a missing service=github
in the actual link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure about that one, I just noticed the odd ball branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nm, looked at their website, it's not required
8e2cda1
to
260b8d6
Compare
@lirantal LGTM... tested and verified the coverage outputs the logs correctly. Everything looks good. And STILL like the Initializing status :) |
lol @mleanos :) |
coverage: true, | ||
require: 'test.js', | ||
coverageFolder: 'coverage', | ||
reportFormats: ['cobertura','lcovonly'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's cobertura?
…roject code coverage information
260b8d6
to
7c286b0
Compare
@ilanbiala per your questions:
|
LGTM |
LGTM, @lirantal do we already see some coverage reports for this PR or not until we merge? |
After we'll merge (I'll do it later), and then we can also tweak and take care of areas for more test as we wish. |
Sounds good. |
@lirantal are we merging this or is there something left to add? |
Merging! :) |
Adding coverage report for server-side tests using istanbul
@lirantal Coveralls still doesn't show anything https://coveralls.io/github/meanjs/mean when I log in and see the repo status. Is there something else we have to add? |
I'll check this |
@ilanbiala ok so I put a specific grunt task called coverage and we aren't calling it as part of the travis ci tests today, and I don't think we should. Instead, we should add another task to the Travis CI to run the coverage. I'll work it out and let you know. |
Code coverage is now built-in to our project and grunt tasks!
and further results:
To run the code coverage simply execute:
Addresses: