-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add support for running tests on Windows #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start", | ||
"test": "NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/.bin/babel-istanbul cover -x **/spec/** ./node_modules/.bin/jasmine", | ||
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start", | ||
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/** node_modules/jasmine/bin/jasmine.js", |
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.
I realise I dropped a ./ on the path to jasmine. Not sure what the best practice is here but would change to be consistent
@steven-supersolid updated the pull request. |
Cool! @steven-supersolid If you can also update our |
Add support for running tests on Windows
@drew-gross That's still something I have to learn, but preliminary look shows Windows might not be supported by Travis? travis-ci/travis-ci#216 |
Ah. I saw that issue, didn't want to read the whole thing, and assumed since it was closed, and I knew OSX was now supported, that meant windows was also supported, My bad! |
cross-env or similar is required for setting environment variables
js paths instead of cmd paths required on Windows
I'm not sure if we need ./node_modules/.bin/babel-node as babel-istanbul includes babel? Would like to remove if not required to simplify and slim the package down.