Class: Webspicy::Tester::FileChecker

Inherits:
Webspicy::Tester show all
Defined in:
lib/webspicy/tester/file_checker.rb

Instance Attribute Summary

Attributes inherited from Webspicy::Tester

#client, #config, #hooks, #invocation, #invocation_error, #reporter, #result, #scope, #service, #spec_file, #specification, #test_case

Instance Method Summary collapse

Methods inherited from Webspicy::Tester

#bind_condition, #call, #call!, #call_once, #failfast?, #find_and_call, #initialize

Constructor Details

This class inherits a constructor from Webspicy::Tester

Instance Method Details

#default_reporterObject



5
6
7
8
9
10
11
# File 'lib/webspicy/tester/file_checker.rb', line 5

def default_reporter
  @reporter = Reporter::Composite.new
  @reporter << Reporter::FileProgress.new
  @reporter << Reporter::Exceptions.new
  @reporter << Reporter::FileSummary.new
  @reporter << Reporter::SuccessOrNot.new
end

#run_scope(all = true) ⇒ Object



13
14
15
16
17
18
# File 'lib/webspicy/tester/file_checker.rb', line 13

def run_scope(all = true)
  scope.each_specification_file do |spec_file|
    @specification = load_specification(spec_file)
    reporter.spec_file_done
  end
end