Sha256: 8a8f0bab21ebda825c7509c17f82323911dd3337a5a29e520fe43543835380b5
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
module SelfTestingFramework class TestResult attr_reader :errors_count, :passed_count, :total_count, :tests, :errors def initialize @errors_count = 0 @passed_count = 0 @errors = [] @tests = [] @total_count = 0 end def passed(klass_name, test_name) @passed_count += 1 @tests << {:class_name => klass_name, :test_name => test_name} @total_count += 1 end def errored(klass_name, test_name, error) @errors_count += 1 @tests << {:class_name => klass_name, :test_name => test_name, :error => error} @errors << {:class_name => klass_name, :test_name => test_name, :error => error} @total_count += 1 end def last_test @tests.last end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
self_testing_framework-0.0.1 | lib/self_testing_framework/test_result.rb |