meteor-coverage
meteor-coverage copied to clipboard
TypeError: Object #<Object> has no method 'addPreProcessor'
When I add velocity-coverage to the example app and run it I just get this repeated error in the log:
=> Started proxy.
=> Started MongoDB.
I20140816-14:06:00.265(2)? Jasmine-Unit is loaded
I20140816-14:06:00.342(2)? Velocity Nightwatch-Selenium is loaded
W20140816-14:06:00.895(2)? (STDERR)
W20140816-14:06:00.895(2)? (STDERR) /home/shybyte/.meteor/tools/cef2bcd356/lib/node_modules/fibers/future.js:173
W20140816-14:06:00.896(2)? (STDERR) throw(ex);
W20140816-14:06:00.896(2)? (STDERR) ^
W20140816-14:06:00.909(2)? (STDERR) TypeError: Object #<Object> has no method 'addPreProcessor'
W20140816-14:06:00.909(2)? (STDERR) at Meteor.methods.velocityGetCoverageObjects.VelocityCoverageMessages.upsert.$set.touchTime (packages/velocity-coverage/coverage.js:166)
W20140816-14:06:00.909(2)? (STDERR) at packages/velocity-coverage/coverage.js:169
W20140816-14:06:00.910(2)? (STDERR) at /home/shybyte/workspace/velocity-example/.meteor/local/build/programs/server/packages/velocity-coverage.js:251:4
W20140816-14:06:00.910(2)? (STDERR) at /home/shybyte/workspace/velocity-example/.meteor/local/build/programs/server/packages/velocity-coverage.js:408:3
W20140816-14:06:00.911(2)? (STDERR) at /home/shybyte/workspace/velocity-example/.meteor/local/build/programs/server/boot.js:161:10
W20140816-14:06:00.912(2)? (STDERR) at Array.forEach (native)
W20140816-14:06:00.912(2)? (STDERR) at Function._.each._.forEach (/home/shybyte/.meteor/tools/cef2bcd356/lib/node_modules/underscore/underscore.js:79:11)
W20140816-14:06:00.912(2)? (STDERR) at /home/shybyte/workspace/velocity-example/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8
I20140816-14:06:02.835(2)? Jasmine-Unit is loaded
I20140816-14:06:02.929(2)? Velocity Nightwatch-Selenium is loaded
...
When I add velocity-quick-start and velocity-coverage to my own app, I get a similar result.
I'm using: Meteorite version 0.7.4 Release 0.8.3
Hi
Sorry for the late response. It seems you're not using the feature/coverage branch of Velocity. You need to set that as follows in the smart.json:
"velocity": { "git": "https://github.com/xolvio/velocity", "branch": "feature/coverage" }
I'll update the docs on the readme until the PR is merged