Skip to content
Newer
Older
100644 7 lines (6 sloc) 473 Bytes
ab25805 @txus Fix setup/teardown bug. Add support for runner addons
authored
1 at_exit{$c.map{|t|i=t.new;$t=t.instance_methods(!0).send($r){|m|m=~/^test_/?(i\
2 .setup rescue 0;i.send m;i.teardown rescue 0;1):nil}.compact};printf"\e[0m\n%fs
3 %d tests, %d assertions, %d failures\n\n%s",Time.now-$n,$t.size,$a,$f.size,$f.\
996f7e0 @txus tweak last pull request
authored
4 map{|f|"\e[1;31mFailure\e[0m \e[97m@\e[33m #{f}\e[0m"}.join(?\n);exit 1 if$f[0]
5 };class A;def a c;$a+=1;print"\e[3"+(c ?"2m.":"1mF");$f<<caller[0]if !c;end;def
ab25805 @txus Fix setup/teardown bug. Add support for runner addons
authored
6 A.inherited(b);$c<<b;end;end;$n=Time.now;$f=[];$c=[];$a=0;$t=[];$r='map'
Something went wrong with that request. Please try again.