File: 0002-spec-helper.rb-skip-all-coverage-check-during-build.patch

package info (click to toggle)
ruby-omniauth 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 400 kB
  • sloc: ruby: 2,483; makefile: 7
file content (36 lines) | stat: -rw-r--r-- 935 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Antonio Terceiro <terceiro@debian.org>
Date: Thu, 10 Jun 2021 09:17:32 -0300
Subject: spec/helper.rb: skip all coverage check during build

This coverage check is not useful for useful for Debian as a downstream,
and requires packages that we do not yet have in the archive.

Forwarded: not-needed
---
 spec/helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/spec/helper.rb
+++ b/spec/helper.rb
@@ -1,21 +1,3 @@
-require 'simplecov'
-require 'coveralls'
-require 'simplecov-lcov'
-
-SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
-
-SimpleCov.formatters = [
-  SimpleCov::Formatter::HTMLFormatter,
-  SimpleCov::Formatter::LcovFormatter,
-  Coveralls::SimpleCov::Formatter
-]
-
-SimpleCov.start do
-  add_filter ['/spec/', '/vendor/', 'strategy_macros.rb']
-  minimum_coverage(92.5)
-  maximum_coverage_drop(0.05)
-end
-
 require 'rspec'
 require 'rack/test'
 require 'rack/freeze'