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

You can use Mocha's binary to load new interfaces #1

Open
moll opened this issue May 16, 2013 · 1 comment
Open

You can use Mocha's binary to load new interfaces #1

moll opened this issue May 16, 2013 · 1 comment

Comments

@moll
Copy link
Contributor

moll commented May 16, 2013

Hey,

You actually can continue to use mocha --ui qunit-mocha-ui if you add --require ./test/qunit and then create the test/qunit.js file with the following content:

require("mocha").interfaces["qunit-mocha-ui"] = require("qunit-mocha-ui")

I'm guessing you could just do that in qunit-mocha-ui/index.js, so all that's needed is something like mocha --require qunit-mocha-ui --ui qunit-mocha-ui.

@itaylor
Copy link
Owner

itaylor commented May 17, 2013

I've submitted a pull request to mocha to add native support for using the --ui option to load an external interface. If it gets accepted, we should be able to close this issue after I update the docs.
mochajs/mocha#851

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