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

Allow ability to execute specific subset of tests #90

Closed
kpdecker opened this issue May 5, 2014 · 7 comments
Assignees
Labels
Milestone

Comments

@kpdecker
Copy link

@kpdecker kpdecker commented May 5, 2014

I.e. the --grep option provided by mocha. Allows for iteration on a specific tests without having to wait for all of the other tests to execute.

@hueniverse

This comment has been minimized.

Copy link
Member

@hueniverse hueniverse commented May 8, 2014

-i not good enough?

@hueniverse hueniverse added the request label May 8, 2014
@kpdecker

This comment has been minimized.

Copy link
Author

@kpdecker kpdecker commented May 8, 2014

I did not see -i in the docs. Does this operate on strict equality or regex?

A grep implementation or alias would be nice for transitioning mocha users or a "so you're a mocha user FAQ".

@hueniverse

This comment has been minimized.

Copy link
Member

@hueniverse hueniverse commented May 8, 2014

no no. Allows you to specify test number to run. I can add grep support, just never found it useful.

@kpdecker

This comment has been minimized.

Copy link
Author

@kpdecker kpdecker commented May 8, 2014

Grep has be very useful for me personally. It makes it easy to run a particular describe, etc and not be limited to one test at a time.

Also for me the docs of only run the test for the given identifier. is a but confusing. Perhaps this would be a bit clearer if it referenced something about the number of the test?

@davetheninja

This comment has been minimized.

Copy link

@davetheninja davetheninja commented May 10, 2014

what is the expected use-case for -i? If i want to run a specific test, in a file of 50 tests, do i need to count each test manually until i know what index/id it is?

Or am I totally missing the point?

@danielb2

This comment has been minimized.

Copy link
Contributor

@danielb2 danielb2 commented May 10, 2014

@davetheninja you can run lab -vd to get a list of the tests with indexes to run using -i

@davetheninja

This comment has been minimized.

Copy link

@davetheninja davetheninja commented May 11, 2014

@danielb2 thank you! this will make things easier!

@hueniverse hueniverse added this to the 3.2.0 milestone May 20, 2014
@hueniverse hueniverse self-assigned this May 20, 2014
@Marsup Marsup added feature and removed request labels Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.