Class: Bucky::Core::TestCore::TestResult
- Inherits:
-
Object
- Object
- Bucky::Core::TestCore::TestResult
- Includes:
- Singleton
- Defined in:
- lib/bucky/core/test_core/test_result.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize ⇒ TestResult
constructor
A new instance of TestResult.
-
#save(added_result_info) ⇒ Object
Save test result.
Constructor Details
#initialize ⇒ TestResult
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
#result ⇒ Object
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
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 |