We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
spec_helper.rb
1 parent ef451f5 commit fe6e178Copy full SHA for fe6e178
1 file changed
spec/unit/spec_helper.rb
@@ -3,10 +3,23 @@
3
require "simplecov"
4
require "simplecov-erb"
5
6
+COV_DIR = File.expand_path("../../coverage", File.dirname(__FILE__))
7
+
8
+SimpleCov.root File.expand_path("../../", File.dirname(__FILE__))
9
+SimpleCov.coverage_dir COV_DIR
10
11
SimpleCov.formatters = [
12
SimpleCov::Formatter::HTMLFormatter,
13
SimpleCov::Formatter::ERBFormatter
14
]
15
16
+SimpleCov.minimum_coverage 100
17
18
+SimpleCov.at_exit do
19
+ File.write("#{COV_DIR}/total-coverage.txt", SimpleCov.result.covered_percent)
20
+ SimpleCov.result.format!
21
+end
22
23
SimpleCov.start do
24
# don't show specs as missing coverage for themselves
25
add_filter "/spec/"
0 commit comments