Skip to content
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

simplify commands to run tests #160

Merged
merged 1 commit into from
Oct 26, 2013

Conversation

c089
Copy link
Member

@c089 c089 commented Oct 26, 2013

No description provided.

@@ -4,8 +4,8 @@
"description": "Render your Backbone.js apps on the client and the server.",
"main": "index.js",
"scripts": {
"test": "./node_modules/mocha/bin/_mocha -R spec ./test --recursive",
"coverage": "node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- -R spec ./test --recursive",
"test": "mocha -R spec ./test --recursive",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this only work if the developer has installed mocha and istanbul globally?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will work without global installation as npm / npm-script manages the PATH:

If you depend on modules that define executable scripts, like test suites, then those executables will be added to the PATH for executing the scripts

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

@spikebrehm
Copy link
Member

Thanks @c089

spikebrehm pushed a commit that referenced this pull request Oct 26, 2013
@spikebrehm spikebrehm merged commit b01c39c into rendrjs:master Oct 26, 2013
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.

None yet

2 participants