File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ before_script:
13
13
# command to install dependencies
14
14
install : pip install -r requirements.txt --use-mirrors
15
15
# command to run tests
16
- script : python vdebugtests.py && rake spec && cucumber
16
+ script : bundle exec rake travis
Original file line number Diff line number Diff line change 1
1
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
2
9
3
10
namespace :test do
4
11
desc "Run all tests (unit and integration/specs)"
5
12
task :all do
6
13
puts "Running unit tests"
7
14
Rake ::Task [ "test:unit" ] . execute
8
- puts "Runing integration (spec) tests"
15
+ puts "Running integration (spec) tests"
9
16
Rake ::Task [ :spec ] . execute
17
+ puts "Running cucumber features"
18
+ Rake ::Task [ :features ] . execute
10
19
end
11
20
12
21
desc "Run unit tests"
@@ -23,5 +32,8 @@ namespace :test do
23
32
end
24
33
25
34
RSpec ::Core ::RakeTask . new ( :spec )
35
+ Cucumber ::Rake ::Task . new ( :features ) do |t |
36
+ t . cucumber_opts = "features --format pretty"
37
+ end
26
38
27
39
task :default => "test:all"
You can’t perform that action at this time.
0 commit comments