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

Run single spec #30

Open
vjdhama opened this issue Mar 5, 2016 · 4 comments
Open

Run single spec #30

vjdhama opened this issue Mar 5, 2016 · 4 comments

Comments

@vjdhama
Copy link
Contributor

vjdhama commented Mar 5, 2016

Currently is it possible to just run a single spec?
I tried doing crystal spec spec/application_spec.cr:24 but it ran all the specs.

@waterlink
Copy link
Owner

Hi,

This feature is currently on the roadmap. If you would like, you could contribute it. I'm here always for you to guide through the codebase in that case.

Am 05.03.2016 um 10:59 AM schrieb Vijay Dhama [email protected]:

Currently is it possible to just run a single spec? I tried doing crystal spec spec/application_spec.cr:24 but it ran all the specs.


Reply to this email directly or view it on GitHub.

@vjdhama
Copy link
Contributor Author

vjdhama commented Mar 5, 2016

I haven't explored spec2 code much. I could contribute but I don't even know where to start. 😞

@waterlink
Copy link
Owner

@vjdhama If you are still interested, you can start looking from ./src/runners/default.cr. Currently it knows how to run context's examples and sub-contexts. Each example has a description. We could easily add there a filter for example description, a.k.a. DescriptionContainFilter. Then in the same fashion as runner accepts order parameter to order examples, it could accept a filter parameter to filter examples and contexts.

@drujensen
Copy link

@vjdhama @waterlink Any progress on this feature? If not, I may take some time to try and add the filter capability.

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

No branches or pull requests

3 participants