File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
spec . require_paths = [ 'lib' ]
18
18
19
19
spec . add_dependency 'danger' , '>= 2.1'
20
- spec . add_dependency 'xcov' , '>= 1.1.2 '
20
+ spec . add_dependency 'xcov' , '>= 1.7.3 '
21
21
spec . add_development_dependency 'bundler' , '~> 1.3'
22
22
spec . add_development_dependency 'rake'
23
23
end
Original file line number Diff line number Diff line change @@ -58,10 +58,16 @@ def produce_report(*args)
58
58
Xcov . ignore_handler = Xcov ::IgnoreHandler . new
59
59
60
60
# Init project
61
- manager = Xcov ::Manager . new ( config )
61
+ report_json = nil
62
+ manager = Xcov ::Manager . new ( config )
62
63
63
- # Parse .xccoverage
64
- report_json = manager . parse_xccoverage
64
+ if Xcov . config [ :html_report ] || Xcov . config [ :markdown_report ] || Xcov . config [ :json_report ]
65
+ # Parse .xccoverage and create local report
66
+ report_json = manager . run
67
+ else
68
+ # Parse .xccoverage
69
+ report_json = manager . parse_xccoverage
70
+ end
65
71
66
72
# Map and process report
67
73
process_report ( Xcov ::Report . map ( report_json ) )
Original file line number Diff line number Diff line change 1
1
module DangerXcov
2
- VERSION = "0.4.1 "
2
+ VERSION = "0.5.0 "
3
3
DESCRIPTION = "Danger plugin to validate the code coverage of the files changed"
4
4
end
You can’t perform that action at this time.
0 commit comments