1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

The actual simplecov/coveralls setup.

The use of Process.pid is an attempt to avoid confusing SimpleCov when
running tests in parallel.  Other tests frameworks take a similar
approach when they detect parallel_tests.
This commit is contained in:
mlincoln 2013-06-18 17:12:14 -05:00
parent e8e21022fb
commit 67d1d8016c

View file

@ -1,3 +1,14 @@
require 'simplecov'
require 'coveralls'
SimpleCov.command_name "shindo:#{Process.pid.to_s}"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.merge_timeout 3600
SimpleCov.start if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.9')
ENV['FOG_RC'] = ENV['FOG_RC'] || File.expand_path('../.fog', __FILE__)
ENV['FOG_CREDENTIAL'] = ENV['FOG_CREDENTIAL'] || 'default'