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

Support for mocha's 'qunit' interface #833

Merged
merged 1 commit into from Oct 28, 2015

Conversation

Flaise
Copy link

@Flaise Flaise commented Oct 15, 2015

No description provided.

@@ -18,7 +19,7 @@ module.exports.run = function(config, specs, capabilities) {
requires = config.mochaOpts.require,
runner;

if(typeof config.mochaOpts.ui !== 'string' || !config.mochaOpts.ui.match(/(bdd|tdd)/i)) {
if(typeof config.mochaOpts.ui !== 'string') {
Copy link
Author

Choose a reason for hiding this comment

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

Mocha may have new interfaces added to it in the future. This sort of thing shouldn't be hard-coded.

Copy link
Member

Choose a reason for hiding this comment

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

if we have it hard coded in the interfaces object why not here?

Copy link
Author

Choose a reason for hiding this comment

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

Because writing it this way makes it so that the worst that happens for interfaces you don't support is that generators won't work. The worst case for the way you wrote it is that it reverts to an entirely different interface.

@christian-bromann
Copy link
Member

Ok, looks good. Thanks for the explanations.

christian-bromann added a commit that referenced this pull request Oct 28, 2015
Support for mocha's 'qunit' interface
@christian-bromann christian-bromann merged commit 46f0120 into webdriverio:master Oct 28, 2015
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