blob: a03e89e64c4adbc1ebed3ff3a7b7bcfffed9b529 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'rspec'
require 'rspec-html-matchers'
RSpec.configure do |config|
config.color = true
config.include RSpecHtmlMatchers
end
unless RUBY_ENGINE == 'jruby'
require 'simplecov'
formatters = [SimpleCov::Formatter::HTMLFormatter]
if ENV['CODACY_PROJECT_TOKEN']
require 'codacy-coverage'
formatters << Codacy::Formatter
end
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(formatters)
SimpleCov.start do
add_filter '/spec/'
end
end
|