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

test with npm test #21

Closed
benatkin opened this issue Jun 25, 2011 · 2 comments
Closed

test with npm test #21

benatkin opened this issue Jun 25, 2011 · 2 comments

Comments

@benatkin
Copy link

It would be easier to get acquainted with this package if package.json was set up to support running the test suite with npm test. I'm interested in coding this up myself but I haven't started yet.

@ashb
Copy link
Collaborator

ashb commented Jun 25, 2011

Last time I looked at npm it didn't have anything about this - got any pointers about what it needs/how it behaves?

@benatkin
Copy link
Author

Here's a pretty minimal example: https://github.com/substack/js-traverse/blob/master/package.json

One nice thing about it is being able to install a package globally and test it. Here's what I just ran:

(mbp) ~/src/github/evilstreak/markdown-js $ npm install -g traverse
traverse@0.4.3 /Users/bat/.npm/nvm/0.0.6/package/v0.4.7/lib/node_modules/traverse
(mbp) ~/src/github/evilstreak/markdown-js $ npm test -g traverse

> traverse@0.4.3 test /Users/bat/.npm/nvm/0.0.6/package/v0.4.7/lib/node_modules/traverse
> expresso


   100% 47 tests

(mbp) ~/src/github/evilstreak/markdown-js $ 

@ashb ashb closed this as completed in 38f43a1 Apr 8, 2012
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

No branches or pull requests

2 participants