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

feat(mocha options): Add support for mocha options #427

Merged
merged 4 commits into from
Oct 20, 2017

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Oct 20, 2017

Add support for some mocha options to be passed to the mocha instance in the stryker-mocha-runner. The implementation uses a ConfigEditor to edit stryker config on the fly.

You can either pass a mocha.opts file using mochaOptions: { opts: 'mocha.opts' }, or pass values directly using mochaOptions: { ui: 'qunit' }.

Closes #417

Add support for *some* mocha options to be passed to the `mocha` instance in the stryker-mocha-runner. The implementation uses a `ConfigEditor` to edit stryker config on the fly.

You can either pass a mocha.opts file using `mochaOptions: { opts: 'mocha.opts' }`, or pass values directly using `mochaOptions: { ui: 'qunit' }`.
Moved support files outside of `/src` and `/test` folders in order to make sure they're not ignored by root .gitignore

export default class MochaConfigEditor implements ConfigEditor {

private log = getLogger('MochaTestRunner');
Copy link
Member

Choose a reason for hiding this comment

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

Is this string intentional?

@simondel
Copy link
Member

I have changed the name of the logger in the MochaConfigEditor because it contained the name of the MochaTestRunner

@simondel simondel merged commit e0229c8 into master Oct 20, 2017
@simondel simondel deleted the feat/support-mocha-opts branch October 20, 2017 14:02
@nicojs
Copy link
Member Author

nicojs commented Oct 20, 2017

Cool. That was a mistake indeed. The && was intentional, however.

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.

2 participants