Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename :test task to 'test:unit'

  • Loading branch information...
commit 67d1e3b1d8920512f86890b290b367ff68628f8f 1 parent fc8319d
@shime shime authored
Showing with 10 additions and 12 deletions.
  1. +1 −1  README.md
  2. +9 −11 Rakefile
View
2  README.md
@@ -101,7 +101,7 @@ Development
For running unit tests, you should run
bundle
- bundle exec rake test
+ bundle exec rake test:unit
If you wish to run the entire suite, which checks the different framework
integrations with cucumber, you should run the following commands
View
20 Rakefile
@@ -15,27 +15,25 @@ require './lib/airbrake/version'
Coveralls::RakeTask.new
-task :default => [:test, "test:integration", "coveralls:push"]
-
-
-desc 'Test the airbrake gem.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.pattern = 'test/*_test.rb'
- t.verbose = true
-end
+task :default => ["test:unit", "test:integration"]
namespace :test do
- desc "Test the integration of airbrake gem with Rails."
+ Rake::TestTask.new(:unit) do |t|
+ t.libs << 'lib'
+ t.pattern = 'test/*_test.rb'
+ t.verbose = true
+ end
+
+ desc "Integration tests for all versions of Rails."
task :integration do
system 'INTEGRATION=true rake appraisal:rails-3.2 integration_test'\
'&& INTEGRATION=true rake appraisal:rails-3.1 integration_test'\
'&& INTEGRATION=true rake appraisal:rails-3.0 integration_test'\
+ '&& rake coveralls:push'\
'&& INTEGRATION=true rake appraisal cucumber'
end
end
-desc "Test the integration of airbrake gem with Rails."
Rake::TestTask.new(:integration_test) do |t|
t.libs << 'lib'
t.pattern = 'test/integration.rb'
Please sign in to comment.
Something went wrong with that request. Please try again.