forked from nerds-odd-e/scrumprimer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (31 loc) · 867 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
require 'rake'
require 'rubygems'
require 'cucumber'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
task :default => [:test_everything]
task :test_everything do
Rake::Task['rspec'].invoke
Rake::Task['cucumber_tests'].invoke
Rake::Task['robot_tests'].invoke
Rake::Task['check_links'].invoke
end
desc "Run the spec tasks"
RSpec::Core::RakeTask.new(:rspec)
task :robot_tests do
sh "pybot -d robottests/output --noncritical 'developing' robottests"
end
desc "run the server"
task :run do |t|
require "./scrumprimer.rb"
ScrumPrimerApp.run!
end
desc "run cucumber features"
Cucumber::Rake::Task.new(:cucumber_tests) do |t|
t.cucumber_opts = "features --format pretty"
end
desc "Link checking on ScrumPrimer.org"
task :check_links do
require 'link_checker'
LinkChecker.new(:target => 'http://127.0.0.1:9292').check_uris
end