Skip to content

Commit 4d4656d

Browse files
committed
Attempt to fix breaking cucumber tests on travis
1 parent 046cec9 commit 4d4656d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ before_script:
1313
# command to install dependencies
1414
install: pip install -r requirements.txt --use-mirrors
1515
# command to run tests
16-
script: python vdebugtests.py && rake spec && cucumber
16+
script: bundle exec rake travis

Rakefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
require 'rspec/core/rake_task'
2+
require 'cucumber'
3+
require 'cucumber/rake/task'
4+
5+
task :travis do
6+
system("export DISPLAY=:99.0 && bundle exec rake test:all")
7+
raise "Tests failed!" unless $?.exitstatus == 0
8+
end
29

310
namespace :test do
411
desc "Run all tests (unit and integration/specs)"
512
task :all do
613
puts "Running unit tests"
714
Rake::Task["test:unit"].execute
8-
puts "Runing integration (spec) tests"
15+
puts "Running integration (spec) tests"
916
Rake::Task[:spec].execute
17+
puts "Running cucumber features"
18+
Rake::Task[:features].execute
1019
end
1120

1221
desc "Run unit tests"
@@ -23,5 +32,8 @@ namespace :test do
2332
end
2433

2534
RSpec::Core::RakeTask.new(:spec)
35+
Cucumber::Rake::Task.new(:features) do |t|
36+
t.cucumber_opts = "features --format pretty"
37+
end
2638

2739
task :default => "test:all"

0 commit comments

Comments
 (0)