Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Run the spek under cursor when "Run context configuration" occurs #41

Merged
merged 1 commit into from
Jun 17, 2017

Conversation

gajwani
Copy link
Contributor

@gajwani gajwani commented Jun 16, 2017

We noticed that while the plugin adds green arrows to the gutter for running specs, it doesn't do anything when you "Run context configuration" (normally bound to ctrl + shift + R on OSX).

We've added more logic to setupConfigurationFromContext and isConfigurationFromContext that attempts to find the containing Spek block for the cursor position so that the appropriate Spek will be run.

We also noticed that run configurations weren't successfully being recycled even when using the gutter arrows, so we added an equality test for Path objects to ensure that the number of run configurations won't continue to grow as you run tests.

Fix isConfigurationFromContext to correctly identify repeated
runs of the same test path.

Signed-off-by: Travis Grathwell <tgrathwell@pivotal.io>
@raniejade raniejade merged commit 4f2d550 into raniejade:master Jun 17, 2017
@raniejade
Copy link
Owner

I never knew a shortcut existed :) That's why I didn't bother to test it out. Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants