Skip to content

Commit

Permalink
Integrated with Coveralls (#7).
Browse files Browse the repository at this point in the history
  • Loading branch information
dallinb committed Dec 26, 2016
1 parent e730acd commit 4ba88fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
require 'coveralls'
require 'rspec-puppet'
require 'rspec-puppet-utils'
require 'puppetlabs_spec_helper/module_spec_helper'
require 'simplecov'
require 'coveralls' unless ENV['TRAVIS'] == 'true'

Coveralls.wear! unless ENV['TRAVIS'] == 'true'
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))

RSpec.configure do |c|
c.module_path = File.join(fixture_path, 'modules')
c.manifest_dir = File.join(fixture_path, 'manifests')
c.environmentpath = File.join(Dir.pwd, 'spec')
c.after(:suite) do
exit(1) if RSpec::Puppet::Coverage.report!(100)
end
end

Coveralls.wear!
at_exit { RSpec::Puppet::Coverage.report! }

0 comments on commit 4ba88fb

Please sign in to comment.