fastlane-community / danger-xcov

Danger plugin to validate the code coverage of the files changed in a pull request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Dangerfile` file: undefined method `map' for false:FalseClass

budulayreturns opened this issue · comments

Hello, I am trying to get test coverage report using danger-xcov ruby
report = xcov.produce_report(
scheme: "MVVM-C",
workspace: "MVVM-C.xcworkspace",
minimum_coverage_percentage: 30.0
)
and getting this exception:
31: from /usr/local/bin/bundle:23:in <main>' 30: from /usr/local/bin/bundle:23:in load'
29: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/exe/bundle:37:in <top (required)>' 28: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/friendly_errors.rb:130:in with_friendly_errors'
27: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/exe/bundle:49:in block in <top (required)>' 26: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/cli.rb:24:in start'
25: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start' 24: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/cli.rb:30:in dispatch'
23: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch' 22: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command'
21: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' 20: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/cli.rb:494:in exec'
19: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/cli/exec.rb:28:in run' 18: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/cli/exec.rb:63:in kernel_load'
17: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.7/lib/bundler/cli/exec.rb:63:in load' 16: from /Users/dzmitry_shabailau/Documents/Workspace/hometask1/vendor/bundle/ruby/2.6.0/bin/danger:23:in <top (required)>'
15: from .../hometask1/vendor/bundle/ruby/2.6.0/bin/danger:23:in load' 14: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/bin/danger:5:in <top (required)>'
13: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in run' 12: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/commands/pr.rb:63:in run'
11: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/commands/local_helpers/local_setup.rb:43:in setup' 10: from.../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/commands/pr.rb:64:in block in run'
9: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/danger_core/dangerfile.rb:287:in run' 8: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/danger_core/dangerfile.rb:201:in parse'
7: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/danger_core/dangerfile.rb:201:in instance_eval' 6: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/danger_core/dangerfile.rb:204:in block in parse'
5: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/danger_core/dangerfile.rb:311:in eval_file' 4: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-8.2.2/lib/danger/danger_core/dangerfile.rb:311:in eval'
3: from Dangerfile:104:in eval_file' 2: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-xcov-0.5.0/lib/danger_plugin.rb:58:in produce_report'
1: from .../hometask1/vendor/bundle/ruby/2.6.0/gems/danger-xcov-0.5.0/lib/danger_plugin.rb:58:in new' .../hometask1/vendor/bundle/ruby/2.6.0/gems/xcov-1.7.5/lib/xcov/ignore_handler.rb:10:in initialize': (Danger::DSLError)
[!] Invalid Dangerfile file: undefined method `map' for false:FalseClass
Did you mean? tap
from Dangerfile:104

report = xcov.produce_report(
scheme: "MVVM-C",