Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Tests do not run on Windows, exits quietly #13

Closed
Ryuzavi opened this issue May 9, 2016 · 4 comments
Closed

Tests do not run on Windows, exits quietly #13

Ryuzavi opened this issue May 9, 2016 · 4 comments

Comments

@Ryuzavi
Copy link

Ryuzavi commented May 9, 2016

Hi

When I try to run tests with this driver on Windows none actually get run and it just exits quietly. When I try to run it without the --once flag I get the below error.

I did have the practicalmeteor:mocha package installed but I removed it since it conflicts with this. But still sadly no luck.

Through further testing I've discovered it works find on Linux. It's only on Windows where it seems to be a problem. Is there any logs or something I could look at to shed more light perhaps?

W20160509-11:05:19.577(1)? (STDERR) TypeError: Cannot call method 'push' of undefined
W20160509-11:05:19.577(1)? (STDERR)     at meteorInstall.node_modules.meteor.dispatch:mocha-core.node_modules.mocha.lib.mocha.js (node_modules/meteor/dispatch:mocha-core/node_modules/mocha/lib/mocha.js:28:1)
W20160509-11:05:19.577(1)? (STDERR)     at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
W20160509-11:05:19.577(1)? (STDERR)     at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:75:1)
W20160509-11:05:19.577(1)? (STDERR)     at meteorInstall.node_modules.meteor.dispatch:mocha-core.node_modules.mocha.index.js (node_modules/meteor/dispatch:mocha-core/node_modules/mocha/index.js:3:1)
W20160509-11:05:19.577(1)? (STDERR)     at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
W20160509-11:05:19.577(1)? (STDERR)     at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:75:1)
W20160509-11:05:19.577(1)? (STDERR)     at meteorInstall.node_modules.meteor.dispatch:mocha-core.server.js (packages/dispatch:mocha-core/server.js:1:1)
W20160509-11:05:19.577(1)? (STDERR)     at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
W20160509-11:05:19.577(1)? (STDERR)     at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:75:1)
W20160509-11:05:19.577(1)? (STDERR)     at node_modules/meteor/dispatch:mocha-core/node_modules/mocha/node_modules/growl/lib/growl.js:234:1
@Ryuzavi Ryuzavi changed the title Cannot call method 'push' of undefined Cannot call method 'push' of undefined on Windows May 9, 2016
@Ryuzavi
Copy link
Author

Ryuzavi commented May 9, 2016

To make this more fun it does run with the conflicted practicalmeteor:mocha packaged installed but with the known conflict error Object [object Object] has no method 'execFile' is thrown during execution. This was raised here #7 and this led to another issue being opened against practicalmeteor:mocha

@Ryuzavi Ryuzavi changed the title Cannot call method 'push' of undefined on Windows Tests do not run on Windows, exits quietly May 9, 2016
@aldeed
Copy link
Contributor

aldeed commented May 11, 2016

@Ryuzavi This should be fixed if you update to dispatch:mocha-phantomjs@0.1.1

@Ryuzavi
Copy link
Author

Ryuzavi commented May 12, 2016

Thanks @aldeed

Weirdly I still seem to get it with the updated driver:

PS E:\app> meteor add dispatch:mocha-phantomjs

Changes to your project package version selections:

dispatch:mocha-core         added, version 0.0.1
dispatch:mocha-phantomjs    added, version 0.1.1
dispatch:phantomjs-tests    added, version 0.0.5
practicalmeteor:mocha-core  added, version 0.1.4


dispatch:mocha-phantomjs: Run package or app tests with Mocha+PhantomJS and report all results in the server console
PS E:\app> meteor test --once --driver-package dispatch:mocha-phantomjs
[[[[[ Tests ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/
   Type Control-C twice to stop.

PS E:\app>

Practical isn't installed here. Will try it with that now.

@Ryuzavi
Copy link
Author

Ryuzavi commented May 12, 2016

Finally got it working by uninstalling both drivers and specifically installing practicalmeteor:mocha and then dispatch:mocha-phantomjs in that specific order.

With this setup dispatch tests will run but practical tests won't. The page is just empty and the tests get ignored. I think this is already known though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants