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

[ftr/mocha] assign interceptors to mocha ui recursively #12822

Merged
merged 1 commit into from
Jul 13, 2017

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Jul 13, 2017

The mocha UI exposed in the function tests currently does not support using describe.only unless the first call within it is another describe() call. This is because the ftr isn't wrapping calls to describe.only and treating them as valid suite definitions. This fixes that by recursively attaching assignment interceptors to all functions defined in the mocha UI.

@spalger spalger requested a review from rhoboat July 13, 2017 03:55
@spalger spalger changed the title [ftr/mocha] assignment interceptors to mocha ui recursively [ftr/mocha] assign interceptors to mocha ui recursively Jul 13, 2017
@spalger spalger removed the request for review from rhoboat July 13, 2017 19:25
@spalger spalger merged commit ffe5919 into elastic:master Jul 13, 2017
@spalger spalger deleted the fix/ftr-file-suite-checks branch July 13, 2017 19:25
spalger added a commit that referenced this pull request Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant