Class: Applitools::TestResultSummary

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/applitools/core/test_result_summary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exceptionsObject

Returns the value of attribute exceptions.



6
7
8
# File 'lib/applitools/core/test_result_summary.rb', line 6

def exceptions
  @exceptions
end

#failedObject

Returns the value of attribute failed.



6
7
8
# File 'lib/applitools/core/test_result_summary.rb', line 6

def failed
  @failed
end

#matchesObject

Returns the value of attribute matches.



6
7
8
# File 'lib/applitools/core/test_result_summary.rb', line 6

def matches
  @matches
end

#mismatchesObject

Returns the value of attribute mismatches.



6
7
8
# File 'lib/applitools/core/test_result_summary.rb', line 6

def mismatches
  @mismatches
end

#missingObject

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_resultsObject

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

#passedObject

Returns the value of attribute passed.



6
7
8
# File 'lib/applitools/core/test_result_summary.rb', line 6

def passed
  @passed
end

#resultsObject

Returns the value of attribute results.



6
7
8
# File 'lib/applitools/core/test_result_summary.rb', line 6

def results
  @results
end

#unresolvedObject

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_aObject



22
23
24
# File 'lib/applitools/core/test_result_summary.rb', line 22

def to_a
  @results
end