Brion Vibber created CB-1278:
--------------------------------
Summary: Tests fail building incubator-cordova-js
Key: CB-1278
URL: https://issues.apache.org/jira/browse/CB-1278
Project: Apache Cordova
Issue Type: Bug
Components: mobile-spec
Affects Versions: Master
Environment: Mac OS X 10.8
NodeJS 0.8.8
Reporter: Brion Vibber
Assignee: Filip Maj
When running 'jake' to build the Cordova JS files, everything builds but
there's an error during test runs:
building commit 7715e097d87735d08e832e5c81a04276c9f9d1fb
generated platform: windows8 in 15ms
generated platform: blackberry in 7ms
generated platform: playbook in 7ms
generated platform: qnx in 6ms
generated platform: ios in 4ms
generated platform: wp7 in 4ms
generated platform: android in 5ms
generated platform: bada in 4ms
generated platform: tizen in 8ms
generated platform: errgen in 5ms
generated platform: test in 2ms
starting node-based tests
jake aborted.
TypeError: Cannot read property 'require' of undefined
at module.exports.node [as action]
(/Users/brion/src/wiki/cordova/incubator-cordova-js/test/runner.js:57:33)
at TaskBase.run (/usr/local/lib/node_modules/jake/lib/task/task.js:207:21)
at TaskBase.handlePrereqComplete
(/usr/local/lib/node_modules/jake/lib/task/task.js:192:12)
at TaskBase.nextPrereq
(/usr/local/lib/node_modules/jake/lib/task/task.js:162:14)
at g (events.js:185:14)
at EventEmitter.emit (events.js:85:17)
at TaskBase.complete
(/usr/local/lib/node_modules/jake/lib/task/task.js:222:10)
at complete (/usr/local/lib/node_modules/jake/lib/api.js:182:15)
at TaskBase.run (/usr/local/lib/node_modules/jake/lib/task/task.js:215:7)
at TaskBase.runPrereqs
(/usr/local/lib/node_modules/jake/lib/task/task.js:117:12)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira