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

This commit is contained in:
Sarah Mei 2011-11-30 21:43:04 -08:00
parent 4db288bc65
commit 993b410d95
3 changed files with 11 additions and 5 deletions

1
.rspec
View file

@ -1,4 +1,3 @@
--format Fuubar
--profile
--color
--tag ~performance

View file

@ -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

View file

@ -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|