Class: Guard::Unity::Parser
- Inherits:
-
Object
- Object
- Guard::Unity::Parser
- Defined in:
- lib/guard/unity/parser.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Parser
Returns a new instance of Parser.
9 10 11 12 |
# File 'lib/guard/unity/parser.rb', line 9 def initialize(={}) @options = @doc = nil end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
7 8 9 |
# File 'lib/guard/unity/parser.rb', line 7 def doc @doc end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/guard/unity/parser.rb', line 7 def @options end |
Instance Method Details
#parse ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/guard/unity/parser.rb', line 14 def parse() { tests: _get('total'), failures: _get('failures'), errors: _get('errors'), ignored: _get('ignored'), not_run: _get('not-run'), inconclusive: _get('inconclusive'), invalid: _get('invalid'), skipped: _get('skipped'), test_cases: _testCases } end |