Fix default rake task so it runs the fixture-generation specs first explicitly.
This commit is contained in:
parent
4db288bc65
commit
993b410d95
3 changed files with 11 additions and 5 deletions
1
.rspec
1
.rspec
|
|
@ -1,4 +1,3 @@
|
||||||
--format Fuubar
|
--format Fuubar
|
||||||
--profile
|
--profile
|
||||||
--color
|
--color
|
||||||
--tag ~performance
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ namespace :ci do
|
||||||
system("export DISPLAY=:99.0 && bundle exec rake cucumber")
|
system("export DISPLAY=:99.0 && bundle exec rake cucumber")
|
||||||
raise "Cucumber failed!" unless $?.exitstatus == 0
|
raise "Cucumber failed!" unless $?.exitstatus == 0
|
||||||
else
|
else
|
||||||
["rspec spec", "rake jasmine:ci"].each do |cmd|
|
["rake spec", "rake jasmine:ci"].each do |cmd|
|
||||||
puts "Starting to run #{cmd}..."
|
puts "Running #{cmd}..."
|
||||||
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
||||||
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,15 @@ begin
|
||||||
|
|
||||||
task :stats => "spec:statsetup"
|
task :stats => "spec:statsetup"
|
||||||
|
|
||||||
desc "Run all specs in spec directory (excluding plugin specs)"
|
desc "Run all specs in spec directory (excluding those tagged performance)"
|
||||||
RSpec::Core::RakeTask.new(:spec => spec_prereq)
|
RSpec::Core::RakeTask.new(:spec => :'spec:fixtures') do |t|
|
||||||
|
t.rspec_opts = ['--tag ~fixture ~performance']
|
||||||
|
end
|
||||||
|
|
||||||
|
desc "Run all specs that generate fixtures for rspec or jasmine"
|
||||||
|
RSpec::Core::RakeTask.new(:'spec:fixtures' => spec_prereq) do |t|
|
||||||
|
t.rspec_opts = ['--tag fixture']
|
||||||
|
end
|
||||||
|
|
||||||
desc "Run the specs with rcov"
|
desc "Run the specs with rcov"
|
||||||
RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t|
|
RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue