Displaying 1 result from an estimated 1 matches for "addsoundtoautotestforcygwin".
2008 Feb 19
0
Playing Sounds with Autotest/RSpec on Cygwin
...ers - here is a snippet that will play a sound after 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`...