forked from MeasureAuthoringTool/health-data-standards
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.simplecov
22 lines (20 loc) · 754 Bytes
/
.simplecov
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SimpleCov.command_name 'Unit Tests'
SimpleCov.start do
add_filter "test/"
add_filter "templates/"
add_group "Import", "lib/health-data-standards/import"
add_group "Export", "lib/health-data-standards/export"
add_group "Models", "lib/health-data-standards/models"
add_group "Utilities", "lib/health-data-standards/util"
add_group "Validate", "lib/health-data-standards/validate"
add_group "HQMF R2", "lib/hqmf-parser/2.0"
end
class SimpleCov::Formatter::QualityFormatter
def format(result)
SimpleCov::Formatter::HTMLFormatter.new.format(result)
File.open("coverage/covered_percent", "w") do |f|
f.puts result.source_files.covered_percent.to_f
end
end
end
SimpleCov.formatter = SimpleCov::Formatter::QualityFormatter