[rspec-users] How to kill a running spec

Scott Taylor
2008-11-16T22:46:25Z

On Nov 16, 2008, at 2:40 PM, Nick Hoffman wrote:

> Hi guys. Occasionally, I''ll want to kill a long spec process
that''s
> running. Usually I hit CTRL+c to kill a running process, but doing
> that for a running spec just causes "^C" to be printed to the
> terminal, and whichever spec example was running to fail.
>
> I''ve also tried using /bin/kill to kill the spec process, but that
> just causes whichever spec example was running to catch a
> SignalException, and fail.

What signal are you sending?  Is it a kill -9 (a KILL, a TERM, ...?)?

Scott