Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

coverage report also for local builds

  • Loading branch information...
commit 4473e5e88ce6b25db73e0161baa6bd111544178d 1 parent 5e9933c
@goldmann goldmann authored
Showing with 7 additions and 7 deletions.
  1. +1 −0  .gitignore
  2. +6 −7 spec/Rakefile
View
1  .gitignore
@@ -4,3 +4,4 @@ log
*.gemspec
pkg
Rakefile
+coverage
View
13 spec/Rakefile
@@ -1,18 +1,17 @@
require 'rake'
require 'spec/rake/spectask'
-libdir = Dir["../platform/**/lib"] + Dir["../os/**/lib"] + Dir["../delivery/**/lib"]
+libdir = Dir["../platform/**/lib"] + Dir["../os/**/lib"] + Dir["../delivery/**/lib"] + ["../../boxgrinder-build/lib", "../../boxgrinder-build/spec", "../../boxgrinder-core/lib", "../../boxgrinder-core/spec" ]
desc "Run all examples"
-Spec::Rake::SpecTask.new('examples') do |t|
+Spec::Rake::SpecTask.new(:default) do |t|
libdir.each do |d|
t.libs.unshift "#{d}"
end
- t.libs.unshift "../../boxgrinder-build/lib"
- t.libs.unshift "../../boxgrinder-core/lib"
- t.libs.unshift "../../boxgrinder-core/spec"
-
- t.spec_files = FileList['../**/spec/**/*-spec.rb']
+ t.spec_files = FileList['../*/*/spec/**/*-spec.rb']
+ t.spec_opts = [ '--format', 's']
+ t.rcov = true
+ t.rcov_opts = ['--exclude', 'spec,teamcity/*,/usr/lib/ruby/,.gem/ruby,/pkg/']
end
Please sign in to comment.
Something went wrong with that request. Please try again.