Sha256: 841bc59a3edd5996c8831cc99c00b09968bfcaefb07386dc4607a62d5ff2b15a
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
module InfinityTest module TestLibrary class TestUnit < TestFramework parse_results :tests => /(\d+) tests/, :assertions => /(\d+) assertions/, :failures => /(\d+) failures/, :errors => /(\d+) errors/ def initialize(options={}) super(options) @test_pattern = 'test/**/*_test.rb' end def construct_rubies_commands(file=nil) command = {} environments do |environment, ruby_version| command[ruby_version] = construct_command( :for => ruby_version, :load_path => 'lib:test', :file => file, :environment => environment, :skip_binary? => true) end command end def test_files super.split.unshift(test_loader).sort.join(' ') end def decide_files(file) return file if file test_files end def test_loader $LOAD_PATH.each do |path| file_path = File.join(path, "infinity_test/test_unit_loader.rb") return file_path if File.exist?(file_path) end end def failure? @failures > 0 or @errors > 0 end def pending? false # Don't have pending in Test::Unit right?? #doubt end end end end
Version data entries
3 entries across 3 versions & 1 rubygems