Class: Tack::Formatters::BasicSummary

Inherits:
Object
  • Object
show all
Includes:
Middleware
Defined in:
lib/tack/formatters/basic_summary.rb

Instance Method Summary collapse

Methods included from Middleware

#returning, #run_test

Constructor Details

#initialize(app) ⇒ BasicSummary

Returns a new instance of BasicSummary.



8
9
10
# File 'lib/tack/formatters/basic_summary.rb', line 8

def initialize(app)
  @app = app
end

Instance Method Details

#run_suite(tests) ⇒ Object



12
13
14
15
16
# File 'lib/tack/formatters/basic_summary.rb', line 12

def run_suite(tests)
  returning @app.run_suite(tests) do |results|
    puts "%d tests, %d failures, %d pending" % [results.values.flatten.length, results[:failed].length, results[:pending].length]
  end
end