[rspec-users] How to kill a running spec

Scott Taylor mailing_lists at railsnewbie.com
Sun Nov 16 17:46:25 EST 2008

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, ...?)?


More information about the rspec-users mailing list