mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 11:36:31 +08:00
26 lines
955 B
Ruby
Vendored
26 lines
955 B
Ruby
Vendored
require 'simplecov'
|
|
|
|
# For reasons I don't understand jruby implementations report lower coverage
|
|
# than other ruby versions. Ruby 2.5.3, for instance, is at 92%.
|
|
#
|
|
# We set the floor based on jruby so that all automated tests pass on Travis CI.
|
|
SimpleCov.minimum_coverage 89
|
|
|
|
SimpleCov.add_filter [
|
|
# Apparently simplecov doesn't automatically filter 'spec' or 'test' so we
|
|
# have to do it manually.
|
|
'test',
|
|
|
|
# Only filtered because I tend to not see value in testing factories.
|
|
'lib/holidays/factory/',
|
|
|
|
# jruby coverage flips out here and doesn't count much of the large date
|
|
# arrays used by this class. This results in an extremely low reported
|
|
# coverage for this specific file but only in jruby, not other ruby versions.
|
|
# Since it obliterates coverage percentages I'll filter it until I can come
|
|
# up with a solution.
|
|
'lib/holidays/date_calculator/lunar_date.rb',
|
|
]
|
|
|
|
SimpleCov.coverage_dir 'reports/coverage'
|
|
SimpleCov.start
|