Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
add spec:focused rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Sep 23, 2009
1 parent 58f60e7 commit 8863b14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -8,3 +8,4 @@ tmtags
email.txt
tmp
*.sw?
spec/spec_files.txt
5 changes: 5 additions & 0 deletions Rakefile
Expand Up @@ -69,6 +69,11 @@ namespace :spec do
t.rcov_opts = ['--exclude', "features,kernel,load-diff-lcs\.rb,instance_exec\.rb,lib/spec.rb,lib/spec/runner.rb,^spec/*,bin/spec,examples,/gems,/Library/Ruby,\.autotest,#{ENV['GEM_HOME']}"]
t.rcov_opts << '--sort coverage --text-summary --aggregate coverage.data'
end

desc "Run files listed in spec/spec_files.txt"
Spec::Rake::SpecTask.new(:focused) do |t|
t.spec_files = File.readlines('spec/spec_files.txt').collect{|f| f.chomp}
end
end

desc "Run Cucumber features"
Expand Down

0 comments on commit 8863b14

Please sign in to comment.