Rebekah Waterbury
Rebekah Waterbury

Reputation: 23796

Can I stop an RSpec test run in the middle?

Sometimes after I start the rspec tests, I realized that I wanted to change something; and if it's a long run I would love to be able to stop it in the middle, change whatever it was, and rerun the tests. Would someone tell me if that is possible and if it is, how to do it?

Upvotes: 3

Views: 1780

Answers (2)

Rebekah Waterbury
Rebekah Waterbury

Reputation: 23796

One can stop the RSpec test in the middle by pressing ctrl-C twice.

Upvotes: 3

orbfish
orbfish

Reputation: 7731

As @zetetic said, press Control-C. Or, if you're running from an IDE, click the stop button for the test (not the server or other code you're testing!)

Upvotes: 0

Related Questions