Commit 993b410d authored by Sarah Mei's avatar Sarah Mei

Fix default rake task so it runs the fixture-generation specs first explicitly.

parent 4db288bc
--format Fuubar
--profile
--color
--tag ~performance
......@@ -7,8 +7,8 @@ namespace :ci do
system("export DISPLAY=:99.0 && bundle exec rake cucumber")
raise "Cucumber failed!" unless $?.exitstatus == 0
else
["rspec spec", "rake jasmine:ci"].each do |cmd|
puts "Starting to run #{cmd}..."
["rake spec", "rake jasmine:ci"].each do |cmd|
puts "Running #{cmd}..."
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
raise "#{cmd} failed!" unless $?.exitstatus == 0
end
......
......@@ -12,8 +12,15 @@ begin
task :stats => "spec:statsetup"
desc "Run all specs in spec directory (excluding plugin specs)"
RSpec::Core::RakeTask.new(:spec => spec_prereq)
desc "Run all specs in spec directory (excluding those tagged performance)"
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"
RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment