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:
parent
e8e21022fb
commit
67d1d8016c
1 changed files with 11 additions and 0 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue