Class: Applitools::TestResultSummary
- Inherits:
-
Object
- Object
- Applitools::TestResultSummary
- Extended by:
- Forwardable
- Defined in:
- lib/applitools/core/test_result_summary.rb
Instance Attribute Summary collapse
-
#exceptions ⇒ Object
Returns the value of attribute exceptions.
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#mismatches ⇒ Object
Returns the value of attribute mismatches.
-
#missing ⇒ Object
Returns the value of attribute missing.
-
#original_test_results ⇒ Object
Returns the value of attribute original_test_results.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#results ⇒ Object
Returns the value of attribute results.
-
#unresolved ⇒ Object
Returns the value of attribute unresolved.
Instance Method Summary collapse
-
#initialize(all_test_results) ⇒ TestResultSummary
constructor
A new instance of TestResultSummary.
- #to_a ⇒ Object
Constructor Details
#initialize(all_test_results) ⇒ TestResultSummary
Returns a new instance of TestResultSummary.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/applitools/core/test_result_summary.rb', line 10 def initialize(all_test_results) @original_test_results = all_test_results @results = all_test_results[:results].map {|r| Applitools::TestResults.new(r) } @passed = all_test_results[:passed] @unresolved = all_test_results[:unresolved] @failed = all_test_results[:failed] @exceptions = all_test_results[:exceptions] @mismatches = all_test_results[:mismatches] @missing = all_test_results[:missing] @matches = all_test_results[:matches] end |
Instance Attribute Details
#exceptions ⇒ Object
Returns the value of attribute exceptions.
6 7 8 |
# File 'lib/applitools/core/test_result_summary.rb', line 6 def exceptions @exceptions end |
#failed ⇒ Object
Returns the value of attribute failed.
6 7 8 |
# File 'lib/applitools/core/test_result_summary.rb', line 6 def failed @failed end |
#matches ⇒ Object
Returns the value of attribute matches.
6 7 8 |
# File 'lib/applitools/core/test_result_summary.rb', line 6 def matches @matches end |
#mismatches ⇒ Object
Returns the value of attribute mismatches.
6 7 8 |
# File 'lib/applitools/core/test_result_summary.rb', line 6 def mismatches @mismatches end |
#missing ⇒ Object
Returns the value of attribute missing.
6 7 8 |
# File 'lib/applitools/core/test_result_summary.rb', line 6 def missing @missing end |
#original_test_results ⇒ Object
Returns the value of attribute original_test_results.
7 8 9 |
# File 'lib/applitools/core/test_result_summary.rb', line 7 def original_test_results @original_test_results end |
#passed ⇒ Object
Returns the value of attribute passed.
6 7 8 |
# File 'lib/applitools/core/test_result_summary.rb', line 6 def passed @passed end |
#results ⇒ Object
Returns the value of attribute results.
6 7 8 |
# File 'lib/applitools/core/test_result_summary.rb', line 6 def results @results end |
#unresolved ⇒ Object
Returns the value of attribute unresolved.
6 7 8 |
# File 'lib/applitools/core/test_result_summary.rb', line 6 def unresolved @unresolved end |
Instance Method Details
#to_a ⇒ Object
22 23 24 |
# File 'lib/applitools/core/test_result_summary.rb', line 22 def to_a @results end |