xolvio / meteor-rtd-example-project

A template project to use for creating a meteor app with unit and webdriver testing
91 stars 27 forks source link

Code coverage report Branches for server/leaderboard.js is 50% #20

Closed lc3t35 closed 11 years ago

lc3t35 commented 11 years ago

As displayed by report :

Meteor.startup(function () {
        E if (Players.find().count() === 0) { 

This is done once at startup, so the branch count() !== 0 is not covered by tests.

xolvio commented 11 years ago

That will be because unit tests coverage combining is disabled until I figure out the issue with istanbul. I'll be back on that soon as I'm loaded with my startup work. I'll keep this open until I sort it

xolvio commented 11 years ago

I've fixed this now, please see here:

https://github.com/xolvio/rtd/issues/28