-
Notifications
You must be signed in to change notification settings - Fork 73
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
Run a subset of tests #98
Comments
mocha -g "some text" will run tests which match the specified string. Be careful though - if you are using the StepLevelPlugin instead of the ScenarioLevelPlugin, it will only run the steps which match the text, not the whole scenario. I'll look into supporting @only. Suspect it will also work incorrectly with the StepLevelPlugin |
Great, thanks! Would be very helpful. |
As of 0.10.12 you should be able to annotate a feature or scenario with @only to get mocha's describe.only and it.only functionality |
👍 |
Confirmed on both 'feature' and 'scenario'. Thanks! |
Is there a way to run a subset of tests (I'm integrating yadda with mocha).
Currently I'm fudging it by adding an only annotation and calling done for tests which don't have this annotation (if there is an
@Only
anywhere in my test suite.This is ok except:
before
,after
,beforeEach
,afterEach
which is causing the browser to still open and close (which slows things down), there is nothis
for the context of these functions. Maybe we could pass thescenario
to it?The text was updated successfully, but these errors were encountered: