Class: Bucky::Core::TestCore::TestResult

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/bucky/core/test_core/test_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestResult

Returns a new instance of TestResult.



17
18
19
20
# File 'lib/bucky/core/test_core/test_result.rb', line 17

def initialize
  @result = Test::Unit::TestResult.new
  @tdo = Bucky::Core::Database::TestDataOperator.new
end

Instance Attribute Details

#resultObject

Returns the value of attribute result.



15
16
17
# File 'lib/bucky/core/test_core/test_result.rb', line 15

def result
  @result
end

Instance Method Details

#save(added_result_info) ⇒ Object

Save test result

Parameters:

  • added_result_info (Array)


24
25
26
27
28
# File 'lib/bucky/core/test_core/test_result.rb', line 24

def save(added_result_info)
  # Format data before saving to database.
  test_suite_result = format_result_summary(added_result_info)
  @tdo.save_test_result(test_suite_result)
end