From eab71208db1afead6803501c8d51d77625e5ad6e Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 13 Jun 2008 00:21:03 -0700 Subject: Performance: integration test benchmarking and profiling. [Jeremy Kemper] --- railties/lib/tasks/testing.rake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'railties/lib/tasks/testing.rake') diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake index cc2376cbb3..2cadcd55fa 100644 --- a/railties/lib/tasks/testing.rake +++ b/railties/lib/tasks/testing.rake @@ -103,6 +103,21 @@ namespace :test do end Rake::Task['test:integration'].comment = "Run the integration tests in test/integration" + Rake::TestTask.new(:benchmark) do |t| + t.libs << 'test' + t.pattern = 'test/performance/**/*_test.rb' + t.verbose = true + t.options = '-- --benchmark' + end + Rake::Task['test:benchmark'].comment = 'Benchmark the performance tests' + + Rake::TestTask.new(:profile) do |t| + t.libs << 'test' + t.pattern = 'test/performance/**/*_test.rb' + t.verbose = true + end + Rake::Task['test:profile'].comment = 'Profile the performance tests' + Rake::TestTask.new(:plugins => :environment) do |t| t.libs << "test" -- cgit v1.2.3