spec/spec_helper.rb in beaker-vcloud-1.0.0 vs spec/spec_helper.rb in beaker-vcloud-1.1.0
- old
+ new
@@ -1,5 +1,28 @@
-require 'simplecov'
+begin
+ require 'simplecov'
+ require 'simplecov-console'
+ require 'codecov'
+rescue LoadError
+else
+ SimpleCov.start do
+ track_files 'lib/**/*.rb'
+
+ add_filter '/spec'
+
+ enable_coverage :branch
+
+ # do not track vendored files
+ add_filter '/vendor'
+ add_filter '/.vendor'
+ end
+
+ SimpleCov.formatters = [
+ SimpleCov::Formatter::Console,
+ SimpleCov::Formatter::Codecov,
+ ]
+end
+
require 'rspec/its'
require 'beaker'
require 'beaker/hypervisor/vcloud'
# setup & require beaker's spec_helper.rb