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

remove hard dependency on growl for test suite #289

Closed
timbertson opened this issue Feb 25, 2012 · 7 comments
Closed

remove hard dependency on growl for test suite #289

timbertson opened this issue Feb 25, 2012 · 7 comments

Comments

@timbertson
Copy link

Currently mocha's own tests won't run without growl, because the checked in test/mocha.opts includes --growl.

I could change the mocha.opts locally, but I don't like being stuck with outstanding changes. I could install growl, but it's a lot of effort (and I don't actually want it).

Perhaps the --growl option should have no effect (and print a warning) if require('growl') fails?

@tj
Copy link
Contributor

tj commented Mar 2, 2012

yeah it would be nice if we could just have it fail silently since it's not a crucial thing, no warnings

@timbertson
Copy link
Author

86c0570 is my fix, although it logs a warning. Should be easy enough to remove that line though.

@timbertson
Copy link
Author

Just a bump, is there any reason you haven't merged my commit above? I can break it out into its own pull request if you want, but it should be pretty trivial to cherry pick or just do by hand...

@tj
Copy link
Contributor

tj commented Mar 28, 2012

i dont recall growl failing on a require(), but failing on growl() maybe. i'll have to take a look at the lib again i cant remember where it fails. either way I dont want to console.log() though

@tj
Copy link
Contributor

tj commented Jun 17, 2012

This issue has been inactive for over 1 month so I'm closing it. If you think it's still an issue re-open. - tjbot

@tj tj closed this as completed Jun 17, 2012
@tj tj reopened this Jun 17, 2012
@timbertson
Copy link
Author

just ran on master (2cc7984), and I get the following:

$ ./bin/mocha                                                

module.js:337
    throw new Error("Cannot find module '" + request + "'");
          ^
Error: Cannot find module 'growl'
    at Function._resolveFilename (module.js:337:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:359:17)
    at require (module.js:375:17)
    at growl (/home/tim/dev/oss/mocha/bin/_mocha:322:16)
    at run (/home/tim/dev/oss/mocha/bin/_mocha:315:22)
    at /home/tim/dev/oss/mocha/bin/_mocha:289:3
    at /home/tim/dev/oss/mocha/bin/_mocha:302:18
    at Array.forEach (native)
    at load (/home/tim/dev/oss/mocha/bin/_mocha:297:9)
    at Object.<anonymous> (/home/tim/dev/oss/mocha/bin/_mocha:288:1)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:38)

@timbertson
Copy link
Author

I'd even be happy if I could just add "--no-growl" to revert the earlier "--growl" on the same command line. Perhaps that's a bit daft though.

@tj tj closed this as completed in e287da5 Jun 25, 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