lib/tryouts/cli/run.rb in tryouts-0.7.3 vs lib/tryouts/cli/run.rb in tryouts-0.7.4
- old
+ new
@@ -37,19 +37,20 @@
Tryouts.enable_debug if Drydock.debug?
Tryouts.verbose = @global.quiet ? -1 : @global.verbose
if Tryouts.verbose > 0
print "Tryouts #{Tryouts::VERSION} -- "
- print "#{Tryouts.sysinfo.to_s} (#{RUBY_VERSION}) -- "
+ print "#{Tryouts.sysinfo.to_s}@#{RUBY_VERSION} -- "
puts "#{start.strftime("%Y-%m-%d %H:%M:%S")}"
puts
end
load_available_tryouts_files
passed, failed = 0, 0
Tryouts.instances.each_pair do |group,tryouts_inst|
+ puts unless group == Tryouts.instances.keys.first
puts ' %-79s'.att(:reverse) % group unless Tryouts.verbose < 0
puts " #{tryouts_inst.paths.join("\n ")}" if Tryouts.verbose > 0
tryouts_inst.tryouts.each_pair do |name,to|
begin
to.run
@@ -68,10 +69,10 @@
puts $/, ' ' << title.color(:red).att(:reverse).bright
tryouts_inst.errors.each do |ex|
puts '%4s%s: %s' % ['', ex.class, ex.message.to_s.split($/).join($/ + ' '*16)]
puts
-
+
if [SyntaxError].member? ex.class
# don't print anymore.
else
unless ex.backtrace.nil?
trace = Tryouts.verbose > 1 ? ex.backtrace : [ex.backtrace.first]