52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# File 'lib/fittask.rb', line 52
def test_suites
if ENV['ATEST']
atest = ENV['ATEST'].split ':'
filename = atest[0]
test_name = File.basename(filename)
test = { :name => test_name, :right => atest[1].to_i, :wrong => atest[2].to_i,
:ignores => atest[3].to_i, :exceptions => atest[4].to_i, :encoding => atest[5] }
suite = AcceptanceTestSuite.new
suite << test
suite.test_path = suite.report_path = File.dirname(filename) + File::SEPARATOR
[suite]
else
@test_suites
end
end
|