Skip to content

Commit

Permalink
Changing rake test to run all tests rather than just unit tests. Le…
Browse files Browse the repository at this point in the history
…aving `rake test:all` around for now
  • Loading branch information
carols10cents committed Sep 5, 2011
1 parent 6df4cf5 commit bfffd39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -2,7 +2,7 @@ rvm:
- 1.9.2
- rbx-2.0
- ruby-head
script: "bundle exec rake test:all"
script: "bundle exec rake test"
notifications:
irc: "irc.freenode.org#rstatus"
branches:
Expand Down
15 changes: 6 additions & 9 deletions lib/tasks/minitest.rake
@@ -1,20 +1,17 @@
require 'rake/testtask'

desc "Run unit tests"
desc "Run all tests"
task :test do
test_task = Rake::TestTask.new("unittests") do |t|
t.test_files = Dir.glob(File.join("test", "models", "**", "*_test.rb"))
test_task = Rake::TestTask.new("alltests") do |t|
t.test_files = Dir.glob(File.join("test", "**", "*_test.rb"))
end
task("unittests").execute
task("alltests").execute
end

namespace :test do
desc "Run all tests"
task :all do
test_task = Rake::TestTask.new("all") do |t|
t.test_files = Dir.glob(File.join("test", "**", "*_test.rb"))
end
task("all").execute
Rake::Task["test"].invoke
end

desc "Run model tests"
Expand All @@ -32,7 +29,7 @@ namespace :test do
end
task("acceptance").execute
end

desc "Run single file"
task :file, :file do |task, args|
puts args.file
Expand Down

0 comments on commit bfffd39

Please sign in to comment.