File: test.rake

package info (click to toggle)
vagrant 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,084 kB
  • sloc: ruby: 15,045; python: 230; sh: 66; makefile: 2; lisp: 1
file content (20 lines) | stat: -rw-r--r-- 436 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'rake/testtask'
require 'rspec/core/rake_task'

namespace :test do
  RSpec::Core::RakeTask.new do |t|
    t.name = "unit"
    t.pattern = "test/unit/**/*_test.rb"
  end

  Rake::TestTask.new do |t|
    t.name = "unit_old"
    t.libs << "test/unit_legacy"
    t.pattern = "test/unit_legacy/**/*_test.rb"
  end

  RSpec::Core::RakeTask.new do |t|
    t.name = "acceptance"
    t.pattern = "test/acceptance/**/*_test.rb"
  end
end