Class: Webr::Jasmine::Reporter::Base
- Inherits:
-
Object
- Object
- Webr::Jasmine::Reporter::Base
- Defined in:
- lib/webr/jasmine/reporter/base.rb
Instance Method Summary collapse
-
#filter_backtrace(s) ⇒ Object
helpers.
-
#initialize(jasmine) ⇒ Base
constructor
A new instance of Base.
- #log(s) ⇒ Object
- #reportRunnerResults(runner) ⇒ Object
- #reportRunnerStarting(runner) ⇒ Object
- #reportSpecResults(spec) ⇒ Object
- #reportSpecStarting(spec) ⇒ Object
- #reportSuiteResults(suite) ⇒ Object
Constructor Details
#initialize(jasmine) ⇒ Base
Returns a new instance of Base.
3 4 5 6 7 8 9 |
# File 'lib/webr/jasmine/reporter/base.rb', line 3 def initialize(jasmine) @jasmine = jasmine @started = false @started_at = nil @finished = false @finished_at = nil end |
Instance Method Details
#filter_backtrace(s) ⇒ Object
helpers
35 36 37 |
# File 'lib/webr/jasmine/reporter/base.rb', line 35 def filter_backtrace(s) s.lines.inject([]) { |ret, line| line.include?(Webr::HOME_PATH) ? ret : ret << line }.join # filter out internal stuff end |
#log(s) ⇒ Object
30 31 |
# File 'lib/webr/jasmine/reporter/base.rb', line 30 def log(s) end |
#reportRunnerResults(runner) ⇒ Object
16 17 18 19 |
# File 'lib/webr/jasmine/reporter/base.rb', line 16 def reportRunnerResults(runner) @finished_at = DateTime.now @finished = true end |
#reportRunnerStarting(runner) ⇒ Object
11 12 13 14 |
# File 'lib/webr/jasmine/reporter/base.rb', line 11 def reportRunnerStarting(runner) @started = true @started_at = DateTime.now end |
#reportSpecResults(spec) ⇒ Object
27 28 |
# File 'lib/webr/jasmine/reporter/base.rb', line 27 def reportSpecResults(spec) end |
#reportSpecStarting(spec) ⇒ Object
24 25 |
# File 'lib/webr/jasmine/reporter/base.rb', line 24 def reportSpecStarting(spec) end |
#reportSuiteResults(suite) ⇒ Object
21 22 |
# File 'lib/webr/jasmine/reporter/base.rb', line 21 def reportSuiteResults(suite) end |