lib/stella/engine/functional.rb in solutious-stella-0.7.0.003 vs lib/stella/engine/functional.rb in solutious-stella-0.7.0.004

- old
+ new

@@ -10,21 +10,28 @@ :benchmark => false, :repetitions => 1 }.merge! opts Stella.ld "OPTIONS: #{opts.inspect}" Stella.li2 "Hosts: " << opts[:hosts].join(', ') if !opts[:hosts].empty? + Stella.li plan.pretty client = Stella::Client.new opts[:hosts].first client.add_observer(self) client.enable_benchmark_mode if opts[:benchmark] + Stella.li $/, "Starting test...", $/ + Drydock::Screen.flush + sleep 0.2 + plan.usecases.each_with_index do |uc,i| desc = (uc.desc || "Usecase ##{i+1}") Stella.li ' %-65s '.att(:reverse).bright % [desc] Stella.rescue { client.execute uc } end Drydock::Screen.flush + + !plan.errors? end end end