Class: Webspicy::Tester::Reporter
- Inherits:
-
Object
- Object
- Webspicy::Tester::Reporter
- Includes:
- Support::Colorize
- Defined in:
- lib/webspicy/tester/reporter.rb,
lib/webspicy/tester/reporter/summary.rb,
lib/webspicy/tester/reporter/progress.rb,
lib/webspicy/tester/reporter/composite.rb,
lib/webspicy/tester/reporter/exceptions.rb,
lib/webspicy/tester/reporter/file_summary.rb,
lib/webspicy/tester/reporter/documentation.rb,
lib/webspicy/tester/reporter/file_progress.rb,
lib/webspicy/tester/reporter/junit_xml_file.rb,
lib/webspicy/tester/reporter/success_or_not.rb
Direct Known Subclasses
Composite, Documentation, Exceptions, FileProgress, FileSummary, JunitXmlFile, Progress, Summary
Defined Under Namespace
Classes: Composite, Documentation, Exceptions, FileProgress, FileSummary, JunitXmlFile, Progress, SuccessOrNot, Summary
Constant Summary collapse
- HOOKS =
[ :before_all, :before_all_done, :before_scope, :scope_done, :before_spec_file, :spec_file_error, :spec_file_done, :before_specification, :specification_done, :before_service, :service_done, :before_test_case, :test_case_done, :before_each, :before_each_done, :before_instrument, :instrument_done, :before_invocation, :invocation_done, :before_assertions, :check_success, :check_failure, :check_error, :assertions_done, :after_each, :after_each_done, :after_all, :after_all_done, :report, :clear ]
- ErrorCount =
class SuccessOrNot
SuccessOrNot
Instance Attribute Summary collapse
-
#io ⇒ Object
readonly
Returns the value of attribute io.
-
#tester ⇒ Object
readonly
Returns the value of attribute tester.
Instance Method Summary collapse
- #find(kind) ⇒ Object
- #init(tester) ⇒ Object
-
#initialize(io = STDOUT) ⇒ Reporter
constructor
A new instance of Reporter.
Methods included from Support::Colorize
colorize, colorize_error, colorize_highlight, colorize_section, colorize_success
Constructor Details
#initialize(io = STDOUT) ⇒ Reporter
Returns a new instance of Reporter.
6 7 8 |
# File 'lib/webspicy/tester/reporter.rb', line 6 def initialize(io = STDOUT) @io = io end |
Instance Attribute Details
#io ⇒ Object (readonly)
Returns the value of attribute io.
9 10 11 |
# File 'lib/webspicy/tester/reporter.rb', line 9 def io @io end |
#tester ⇒ Object (readonly)
Returns the value of attribute tester.
14 15 16 |
# File 'lib/webspicy/tester/reporter.rb', line 14 def tester @tester end |
Instance Method Details
#find(kind) ⇒ Object
70 71 72 73 |
# File 'lib/webspicy/tester/reporter.rb', line 70 def find(kind) return self if self.is_a?(kind) raise "Missing reporter #{kind}" end |
#init(tester) ⇒ Object
11 12 13 |
# File 'lib/webspicy/tester/reporter.rb', line 11 def init(tester) @tester = tester end |