This article was migrated from http://rai
RailsのIntegratio
require "#{File.dirna me(__FILE__) }/../test_h elper"
class TestingRul eTest < ActionController::IntegrationTest
def setup
@stats = `rake stats`
end
def test_code_to_test_ratio
cttr = @stats.match(%r{Code to Test Ratio: 1:([\d\.]+)})[1].to_f
assert cttr >= 0.8, "Need more tests."
end
end
多人数で開発をしてるとなかなか面白いですよ。一人の場合でも自分への戒めに使えるかな。
[English]
This article was migrated from http://rai
posted by
genki
on Sat 3 Feb 2007
at 05:47


