[rspec-users] Callback when tests are done

Jeremy Woertink lists at ruby-forum.com
Thu Mar 3 12:38:17 EST 2011

Currently when I run my tests, I run

$ rspec spec/ -cf nested

Is there a way to have a callback that when this task is done running, I
can hook into how many tests failed, or how many passed, and have my own
code run right after?

Right now I'm just using an at_exit {} and putting some stuff in there,
but I don't know how to access the final results as a variable, or if
rspec has this built in already.



Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list