Class: QUnited::Formatter::Dots
- Inherits:
-
Base
- Object
- Base
- QUnited::Formatter::Dots
show all
- Defined in:
- lib/qunited/formatter/dots.rb
Instance Attribute Summary
Attributes inherited from Base
#driver_name, #output, #test_results
Instance Method Summary
collapse
Methods inherited from Base
#close, #initialize, #message, #stop
Instance Method Details
#start ⇒ Object
4
5
6
7
|
# File 'lib/qunited/formatter/dots.rb', line 4
def start
super
output.print "\n# Running JavaScript tests with #{driver_name}:\n\n"
end
|
#summarize ⇒ Object
19
20
21
22
23
|
# File 'lib/qunited/formatter/dots.rb', line 19
def summarize
output.print "\n\n#{times_line}\n"
output.print failure_output
output.print "\n#{bottom_line}\n"
end
|
#test_failed(result) ⇒ Object
14
15
16
17
|
# File 'lib/qunited/formatter/dots.rb', line 14
def test_failed(result)
super result
output.print(result.error? ? 'E' : 'F')
end
|
#test_passed(result) ⇒ Object
9
10
11
12
|
# File 'lib/qunited/formatter/dots.rb', line 9
def test_passed(result)
super result
output.print '.'
end
|