Skip to content

Commit

Permalink
rename :test task to 'test:unit'
Browse files Browse the repository at this point in the history
  • Loading branch information
shime committed Aug 31, 2013
1 parent fc8319d commit 67d1e3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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
Expand Down
20 changes: 9 additions & 11 deletions Rakefile
Expand Up @@ -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'
Expand Down

0 comments on commit 67d1e3b

Please sign in to comment.