Skip to content

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

Merged
merged 5 commits into from
Feb 11, 2016
Merged

Add support for running tests on Windows #335

merged 5 commits into from
Feb 11, 2016

Conversation

steven-supersolid
Copy link
Contributor

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.

"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",
Copy link
Contributor Author

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

@facebook-github-bot
Copy link

@steven-supersolid updated the pull request.

@drew-gross
Copy link
Contributor

Cool! @steven-supersolid If you can also update our .travis.yml to build on windows that will help us make sure windows test keep working into the future.

drew-gross added a commit that referenced this pull request Feb 11, 2016
Add support for running tests on Windows
@drew-gross drew-gross merged commit dea7bb5 into parse-community:master Feb 11, 2016
@steven-supersolid
Copy link
Contributor Author

@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

@drew-gross
Copy link
Contributor

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!

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

Successfully merging this pull request may close these issues.

4 participants