2009-06-25 12:03:04 -04:00
|
|
|
require 'active_support/testing/performance'
|
|
|
|
|
2010-03-28 06:32:17 -04:00
|
|
|
begin
|
2009-12-03 12:06:01 -05:00
|
|
|
module ActionDispatch
|
|
|
|
# An integration test that runs a code profiler on your test methods.
|
|
|
|
# Profiling output for combinations of each test method, measurement, and
|
|
|
|
# output format are written to your tmp/performance directory.
|
|
|
|
#
|
|
|
|
# By default, process_time is measured and both flat and graph_html output
|
|
|
|
# formats are written, so you'll have two output files per test method.
|
|
|
|
class PerformanceTest < ActionDispatch::IntegrationTest
|
|
|
|
include ActiveSupport::Testing::Performance
|
|
|
|
end
|
2009-06-25 12:03:04 -04:00
|
|
|
end
|
2010-03-28 06:32:17 -04:00
|
|
|
rescue NameError
|
|
|
|
$stderr.puts "Specify ruby-prof as application's dependency in Gemfile to run benchmarks."
|
2010-10-01 20:22:42 -04:00
|
|
|
end
|