No activity summaries found for test with Danger

Japanese translation unavailable

This page has not been translated into Japanese yet - we apologise for the inconvenience! If you’re interested in helping us out, feel free to translate any article in the jp folder of the DevCenter repository and open a PR!

このページは日本語への翻訳がまだ完了しておりません。ご不便をおかけして申し訳ございません! もしお手伝いできる方がいらっしゃれば、ご自由にjpフォルダの記事を日本語に訳していただき、PRを開いてください

The issue

When running Danger with the xcov plugin, you may get some form of the following error message:

2019/01/01 00:00:00 no activity summaries found for test:

The solution

This is a consequence of how the Xcode Test for iOS Step works: it generates an .xcresult bundle and exports it to the $BITRISE_XCRESULT_PATH.

Xcov, by default, for the results bundle in its default location, not at $BITRISE_XCRESULT_PATH. Because of this your build will fail when using those tools. You need to configure them to look for the bundle in the location set by the Env Var. Here’s an example xcov setup:

Plugin version

The xcov plugin must be version 1.6 or later: earlier versions do not allow specifying the exact path.
  scheme: 'ExampleScheme',
  workspace: 'example.xcworkspace',
  xccov_file_direct_path: ENV['BITRISE_XCRESULT_PATH'],
  include_targets: ',ExampleShared.framework,ExampleWidget.appex'