forked from vim-vdebug/vdebug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (33 loc) · 888 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require 'rspec/core/rake_task'
require 'cucumber'
require 'cucumber/rake/task'
task :travis do
system("export DISPLAY=:99.0 && bundle exec rake test:all")
raise "Tests failed!" unless $?.exitstatus == 0
end
namespace :test do
desc "Run all tests (unit and integration/specs)"
task :all do
puts "Running unit tests"
Rake::Task["test:unit"].execute
puts "Running integration (spec) tests"
Rake::Task[:spec].execute
puts "Running cucumber features"
Rake::Task[:features].execute
end
desc "Run unit tests"
task :unit do
cmd = "python vdebugtests.py"
puts cmd
system cmd
end
desc "Run integration tests (alias for `spec`)"
task :integration do
Rake::Task[:spec]
end
end
RSpec::Core::RakeTask.new(:spec)
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format pretty"
end
task :default => "test:all"