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 not running #30

Closed
jos3000 opened this issue Jan 24, 2012 · 2 comments
Closed

Test not running #30

jos3000 opened this issue Jan 24, 2012 · 2 comments

Comments

@jos3000
Copy link

jos3000 commented Jan 24, 2012

Seems like a little typo - the test suite points to tests instead of test


JosProDesk:cheerio jos$ npm install

JosProDesk:cheerio jos$ npm test

> cheerio@0.4.2 test /Users/jos/Sites/cheerio
> coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec


node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Cannot find module '/Users/jos/Sites/cheerio/tests/test.cheerio'
    at Function._resolveFilename (module.js:334:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:357:17)
    at require (module.js:368:17)
    at /usr/local/lib/node_modules/vows/bin/vows:496:19
    at Array.reduce (native)
    at importSuites (/usr/local/lib/node_modules/vows/bin/vows:491:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/vows/bin/vows:247:15)
    at Module._compile (module.js:432:26)
    at Object..js (module.js:450:10)
npm ERR! cheerio@0.4.2 test: `coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec`
npm ERR! `sh "-c" "coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec"` failed with 1
npm ERR! 
npm ERR! Failed at the cheerio@0.4.2 test script.
npm ERR! This is most likely a problem with the cheerio package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec
npm ERR! You can get their info via:
npm ERR!     npm owner ls cheerio
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "test"
npm ERR! cwd /Users/jos/Sites/cheerio
npm ERR! node -v v0.6.7
npm ERR! npm -v 1.1.0-beta-10
npm ERR! code ELIFECYCLE
npm ERR! message cheerio@0.4.2 test: `coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec`
npm ERR! message `sh "-c" "coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec"` failed with 1
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/jos/Sites/cheerio/npm-debug.log
npm not ok
@matthewmueller
Copy link
Member

Oh thanks Jos for pointing that out. That version is a bit out of date. Try running make test instead.

Sent from my iPhone

On Jan 24, 2012, at 7:32 AM, Jos Shepherdreply@reply.github.com wrote:

Seems like a little typo - the test suite points to tests instead of test


JosProDesk:cheerio jos$ npm install

JosProDesk:cheerio jos$ npm test

> cheerio@0.4.2 test /Users/jos/Sites/cheerio
> coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec


node.js:201
       throw e; // process.nextTick error, or 'error' event on first tick
             ^
Error: Cannot find module '/Users/jos/Sites/cheerio/tests/test.cheerio'
   at Function._resolveFilename (module.js:334:11)
   at Function._load (module.js:279:25)
   at Module.require (module.js:357:17)
   at require (module.js:368:17)
   at /usr/local/lib/node_modules/vows/bin/vows:496:19
   at Array.reduce (native)
   at importSuites (/usr/local/lib/node_modules/vows/bin/vows:491:18)
   at Object.<anonymous> (/usr/local/lib/node_modules/vows/bin/vows:247:15)
   at Module._compile (module.js:432:26)
   at Object..js (module.js:450:10)
npm ERR! cheerio@0.4.2 test: `coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec`
npm ERR! `sh "-c" "coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec"` failed with 1
npm ERR! 
npm ERR! Failed at the cheerio@0.4.2 test script.
npm ERR! This is most likely a problem with the cheerio package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec
npm ERR! You can get their info via:
npm ERR!     npm owner ls cheerio
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "test"
npm ERR! cwd /Users/jos/Sites/cheerio
npm ERR! node -v v0.6.7
npm ERR! npm -v 1.1.0-beta-10
npm ERR! code ELIFECYCLE
npm ERR! message cheerio@0.4.2 test: `coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec`
npm ERR! message `sh "-c" "coffee -o lib/ src/ && vows tests/test.cheerio.coffee --spec"` failed with 1
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/jos/Sites/cheerio/npm-debug.log
npm not ok

Reply to this email directly or view it on GitHub:
#30

@matthewmueller
Copy link
Member

Fixed docs and removed npm test from package.json

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