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

Feature request: Context Focus #34

Open
marceloboeira opened this issue Apr 1, 2016 · 2 comments
Open

Feature request: Context Focus #34

marceloboeira opened this issue Apr 1, 2016 · 2 comments

Comments

@marceloboeira
Copy link
Contributor

It would be nice to be able to focus a specific context, if you have a big test suite, sometimes it boring to wait for the whole thing to finish.

describe Foo do
  context "when A" do
    it "do stuff" do
        ...
    end  
  end

  context "when B", focus: true do
    it "do other stuff" do
        ...
    end  
  end
end

Then, if focus is true, you run first that context, or even just that context.

@waterlink what do you think?

@waterlink
Copy link
Owner

@marceloboeira I think, we can do something like that. Also, it would be nice to have filtering capabilities, like rspec does: crystal spec -e 'hello world' and it will run only tests that have hello world in their description. Are you up for trying to make that happen? PoC or a pull request?

@marceloboeira
Copy link
Contributor Author

@waterlink sorry for taking so long, lots of commitments lately. I will try to work on it next weekend, and I let you know of any progress.

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

2 participants