-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(tests): Add client and server test coverage to Gulp #1466
Conversation
@hyperreality awesome, what do you need my help with? |
@hyperreality Could you change this, too: https://github.com/meanjs/mean/blob/master/.travis.yml#L41 |
True, that will kick off the coveralls so we can see some results, and also maybe we should update the README/npm scripts in |
@@ -50,6 +50,7 @@ | |||
"glob": "~7.0.0", | |||
"grunt": "~1.0.1", | |||
"grunt-cli": "~1.2.0", | |||
"gulp-istanbul": "^1.1.1", |
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 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.
@ilanbiala thanks, noted.
3 similar comments
3f7fe2b
to
41fcb92
Compare
Okay this is pretty weird stuff. Here are the results of the grunt coverage task: https://coveralls.io/builds/7677048 Karma is testing a different set of client side files each time! The original grunt coverage test misses out client-side directives, controllers and services. On the other hand, the gulp coverage test misses out all 'config' directory files which were included in the grunt task. I'll take another look at this tomorrow. |
Ok, keep us posted @hyperreality, this one is really important to merge when ready. |
41fcb92
to
ca03907
Compare
Okay, I think I cracked it. There was a bug with the previous Grunt coverage tasks never submitting client-side tests to coveralls. This new Gulp coverage task fixes that by merging the client and server side test reports and submitting them together. Thus the number of files being recorded for coverage has increased. Should be ready now I believe. |
I can't seem to get the checks kicking off on this one. |
@hyperreality Looks like there's a conflict with your version of the branch & master. Try re-basing your local master branch from upstream, and then re-basing your PR branch from your local master. |
bf55a95
to
6aacfae
Compare
@mleanos Cheers, I didn't see those new commits coming in. |
Changes Unknown when pulling 6aacfae on hyperreality:gulp-coverage into * on meanjs:master*. |
@hyperreality how is it now? |
@lirantal I'm not sure what's going on. My personal builds are getting coverage for all tests: https://coveralls.io/builds/7697944 |
Very odd. |
feat(tests): Add client and server test coverage to Gulp
This runs server-side test coverage using grunt-istanbul and sets karma
to run coverage tests, when gulp test:coverage is run.
I need a project maintainer to help integrate coveralls to this. After that is
done, Gulp should be 100% ready to replace Grunt.
Completes one of the #1175 milestones, also #1231 can be closed