search for: ran_command

Displaying 1 result from an estimated 1 matches for "ran_command".

Did you mean: anycommand
2008 Feb 19
0
Playing Sounds with Autotest/RSpec on Cygwin
...er autotest runs. Add the code below to your ~/.autotest file. Modify the path of the .wav file to the sounds you want to play on your system. Cheers, Andy vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Module AddSoundtoAutoTestforCygwin Autotest.add_hook :ran_command do |at| results = [at.results].flatten.join("\n") output = results.slice(/(\d+)\s+examples?,\s*(\d+)\s+failures?(,\s*(\d+)\s+not implemented)?/) if output if $~[2].to_i > 0 `cat /cygdrive/c/i386/ringout.wav > /dev/dsp` # failure else `cat...