lyndsey-ferguson / fastlane-plugin-test_center

🎯 The best fastlane plugin to understand and tame misbehaving iOS tests 🎉
MIT License
285 stars 66 forks source link

No tests found in xctest file when I use multi_scan with cucumberish tests #281

Open EstelaDF opened 3 years ago

EstelaDF commented 3 years ago

New Issue Checklist

Issue Description

I'm running multi_scan with a project that use Cucumberish tests. I use the next lane:

desc "Multiple Cucumberish tests"
  lane :tests do
    multi_scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      testplan: "FoodTracker2",
      build_for_testing: false
    )
  end

And the result is the next ("Test build Succeeded" but zero tests)

Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

[10:31:02]: No tests found in '../Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest'!
[10:31:02]: Is the Build Setting, `ENABLE_TESTABILITY` enabled for the test target FoodTracker2CucumberTests?
[10:31:02]: If your Swift test method names use a prefix other than `test`, consider setting `:swift_test_prefix`.
[10:31:02]: :parallel_testrun_count greater than the number of tests (0). Reducing to that number.

+-------------------+------+
|    multi_scan results    |
+-------------------+------+
| result            | true |
| total_tests       | 0    |
| passing_testcount | 0    |
| failed_testcount  | 0    |
| failed_tests      | []   |
| total_retry_count | 0    |
| report_files      | []   |
+-------------------+------+

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | multi_scan       | 10          |
+------+------------------+-------------+

[10:31:02]: fastlane.tools finished successfully 🎉

I already check the ENABLE_TESTABILITY is enabled.

Summary for scan:

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.157.2                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| build_for_testing                              | true                                                    |
| device                                         | iPhone                                                  |
| clean                                          | true                                                    |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| open_report                                    | false                                                   |
| output_directory                               | ./fastlane/test_output                                  |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | false                                                   |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
+------------------------------------------------+---------------------------------------------------------+

I can see the build_for_texting is True, however I put "build_for_testing: false" in the lane.

With scan works

When I use scan:

lane :testsScan do
        scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      testplan: "FoodTracker2"
    )

The tests are excuted in a good way ("Test Succeeded") and the result is this:

[11:14:00]: ▸ Test Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 0 |
+--------------------+---+

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | scan             | 49          |
+------+------------------+-------------+

Environment

🚫 fastlane environment 🚫 ### Stack | Key | Value | | --------------------------- | -------------------------------------------------------------- | | OS | 10.15.6 | | Ruby | 2.6.3 | | Bundler? | false | | Git | git version 2.24.3 (Apple Git-128) | | Installation Source | /usr/local/bin/fastlane | | Host | Mac OS X 10.15.6 (19G2021) | | Ruby Lib Dir | /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib | | OpenSSL Version | LibreSSL 2.8.3 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 11.7 | ### System Locale | Error | | --------------------------- | | No Locale with UTF8 found 🚫 | ### fastlane files:
`./fastlane/Fastfile` ```ruby # This file contains the fastlane.tools configuration # You can find the documentation at https://docs.fastlane.tools # # For a list of all available actions, check out # # https://docs.fastlane.tools/actions # # For a list of all available plugins, check out # # https://docs.fastlane.tools/plugins/available-plugins # # Uncomment the line if you want fastlane to automatically update itself #update_fastlane default_platform(:ios) desc "Multiple Cucumberish tests" lane :tests do multi_scan( workspace: "FoodTracker2.xcworkspace", scheme: "FoodTracker2", testplan: "FoodTracker2", build_for_testing: false ) end desc "Multiple tests of FoodTracker2 project" lane :testsScan do scan( workspace: "FoodTracker2.xcworkspace", scheme: "FoodTracker2", testplan: "FoodTracker2" ) end ```
`./fastlane/Appfile` ```ruby # app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app # apple_id("[[APPLE_ID]]") # Your Apple email address # For more information about the Appfile, see: # https://docs.fastlane.tools/advanced/#appfile ```
### fastlane gems | Gem | Version | Update-Status | | -------- | ------- | ------------- | | fastlane | 2.157.2 | ✅ Up-To-Date | ### Loaded fastlane plugins: | Plugin | Version | Update-Status | | --------------------------- | ------- | ------------- | | fastlane-plugin-test_center | 3.14.2 | ✅ Up-To-Date |
Loaded gems | Gem | Version | | --------------------------- | ------------ | | did_you_mean | 1.3.0 | | slack-notifier | 2.3.2 | | atomos | 0.1.3 | | claide | 1.0.3 | | colored2 | 3.1.2 | | nanaimo | 0.3.0 | | xcodeproj | 1.18.0 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | terminal-notifier | 2.0.0 | | unicode-display_width | 1.7.0 | | terminal-table | 1.8.0 | | plist | 3.5.0 | | addressable | 2.7.0 | | multipart-post | 2.0.0 | | word_wrap | 1.0.0 | | tty-screen | 0.8.1 | | tty-cursor | 0.7.1 | | tty-spinner | 0.9.3 | | babosa | 1.0.3 | | colored | 1.2 | | highline | 1.7.10 | | commander-fastlane | 4.4.6 | | excon | 0.76.0 | | faraday | 1.0.1 | | faraday_middleware | 1.0.0 | | fastimage | 2.2.0 | | gh_inspector | 1.1.3 | | mini_magick | 4.10.1 | | rubyzip | 2.3.0 | | security | 0.1.3 | | xcpretty-travis-formatter | 1.0.0 | | dotenv | 2.7.6 | | bundler | 1.17.2 | | naturally | 2.2.0 | | simctl | 1.6.8 | | jwt | 2.2.2 | | uber | 0.1.0 | | declarative | 0.0.20 | | declarative-option | 0.1.0 | | representable | 3.0.4 | | retriable | 3.1.2 | | mini_mime | 1.0.2 | | multi_json | 1.15.0 | | signet | 0.14.0 | | memoist | 0.16.2 | | os | 1.1.1 | | googleauth | 0.13.1 | | httpclient | 2.8.3 | | google-api-client | 0.38.0 | | google-cloud-env | 1.3.3 | | google-cloud-errors | 1.0.1 | | google-cloud-core | 1.5.0 | | rake | 13.0.1 | | digest-crc | 0.6.1 | | google-cloud-storage | 1.28.0 | | emoji_regex | 3.0.0 | | jmespath | 1.4.0 | | aws-eventstream | 1.1.0 | | aws-sigv4 | 1.2.2 | | aws-sdk-core | 3.105.0 | | aws-sdk-kms | 1.37.0 | | aws-sdk-s3 | 1.79.1 | | CFPropertyList | 3.0.2 | | public_suffix | 4.0.5 | | unf_ext | 0.0.7.7 | | unf | 0.1.4 | | domain_name | 0.5.20190701 | | http-cookie | 1.0.3 | | faraday-cookie_jar | 0.0.7 | | json | 2.3.1 | | aws-partitions | 1.363.0 | | forwardable | 1.2.0 | | logger | 1.3.0 | | stringio | 0.0.2 | | ipaddr | 1.2.2 | | openssl | 2.1.2 | | ostruct | 0.1.0 | | strscan | 1.0.0 | | date | 2.0.0 | | fileutils | 1.1.0 | | etc | 1.0.1 | | io-console | 0.4.7 | | zlib | 1.0.0 | | libxml-ruby | 3.1.0 | | rexml | 3.1.9 | | psych | 3.1.0 | | mutex_m | 0.1.0 | | webrick | 1.4.2 | | trainer | 0.9.1 | | xctest_list | 1.2.1 | | colorize | 0.8.1 | | fastlane-plugin-test_center | 3.14.2 |
*generated on:* **2020-09-03**
lyndsey-ferguson commented 3 years ago

@EstelaDF thanks for the report. Can you help clarify some confusion that I am experiencing?

  1. You tell multi_scan to NOT build_for_testing. That means that there should be an existing xctestrun and therefore a xctest file. The xctest file is what contains the actual tests to be run.

  2. You tell scan to run. That tells it to build tests if necessary.

  3. Question: what happens if you also tell scan to build_for_testing: false?

EstelaDF commented 3 years ago

@lyndsey-ferguson I answer the points one by one:

  1. Sorry but I think multi_scan ALWAYS build_for_testing, because even If I put build_for_testing: false in the lane, the summary for scan puts build_for_tesing = true.
+------------------------------------------------+---------------------------------------------------------------------------------------------+
|                                                           Summary for scan 2.158.0                                                           |
+------------------------------------------------+---------------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                    |
| scheme                                         | FoodTracker2                                                                                |
| build_for_testing                              | true                                                                                        |
| device                                         | iPhone                                                                                      |
| clean                                          | true                                                                                        |
| output_types                                   | html,junit                                                                                  |
| skip_detect_devices                            | false                                                                                       |
| force_quit_simulator                           | false                                                                                       |
| reset_simulator                                | false                                                                                       |
| disable_slide_to_type                          | true                                                                                        |
| reinstall_app                                  | false                                                                                       |
| open_report                                    | false                                                                                       |
| output_directory                               | ./fastlane/test_output                                                                      |
| buildlog_path                                  | ~/Library/Logs/scan                                                                         |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh |
| should_zip_build_products                      | false                                                                                       |
| use_clang_report_name                          | false                                                                                       |
| disable_concurrent_testing                     | false                                                                                       |
| slack_use_webhook_configured_username_and_icon | false                                                                                       |
| slack_username                                 | fastlane                                                                                    |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                         |
| skip_slack                                     | false                                                                                       |
| slack_only_on_failure                          | false                                                                                       |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                           |
| fail_build                                     | true                                                                                        |
| include_simulator_logs                         | false                                                                                       |
| skip_build                                     | false                                                                                       |
| xcode_path                                     | /Applications/Xcode.app                                                                     |
+------------------------------------------------+---------------------------------------------------------------------------------------------+

And the result is always "Test build Succeeded" without tests results.

  1. I think it's necessary build the tests but I think the parameter build_for_testing means: "Build for testing only, does not run tests" (https://docs.fastlane.tools/actions/scan/). So I think multi_scan only build but not run the tests.

  2. Ok, If I use scan with build_for_testing: false the result is the latests I put on the issue ("Test Succeeded"). But, If I use scan with build_for_testing: true then the result is similar to multi_scan ("Test build Succeeded" with zero tests).

[08:30:05]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | scan             | 9           |
+------+------------------+-------------+

[08:30:05]: fastlane.tools finished successfully 🎉
lyndsey-ferguson commented 3 years ago

@EstelaDF thank you for your reply.

Yes, multi_scan will always build for testing if :test_without_building is not set.

When you see:

Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

After the build step, that is expected: it built your app and the test runner and didn't run any tests.

AND then, from what I see, it isn't actually able to run the tests, it stops. I'll see if I can reproduce it locally. Question, if you remove the build_for_testing option entirely from multi_scan does it change anything?

EstelaDF commented 3 years ago

@lyndsey-ferguson thanks for fast response.

Yes, but I understand that the parameter build_for_testing is only for to build, not for to run. Is it? For this reason I put the parameter with FALSE value. Because multi_scan seems that only build.

If I remove the build_for_testing option entirely from multi_scan the parameter is automatically TRUE in the summary for scan table, and the same result: "Test build Succeeded" without tests results.

BUT, this behaviour is only for Cucumberish tests, because I used multi_scan with UITest and with Cucumberish tests and the UITests works in a good way.

lyndsey-ferguson commented 3 years ago

Ohhh, "Cucumberish" tests. I would guess that those are invocation_based_tests? If so, can you pass the option invocation_based_tests: true to multi_scan?

EstelaDF commented 3 years ago

@lyndsey-ferguson thanks!

It works when I pass the option invocation_based_tests: true to multi_scan. I don't know this parameter, I don't find it in the documentation, sorry.

First, build with zero tests but then, run tests and it find all of them:

[17:35:32]: ▸ Test execute Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 0 |
+--------------------+---+

+------------------+-------+
|       Lane Context       |
+------------------+-------+
| DEFAULT_PLATFORM | ios   |
| PLATFORM_NAME    |       |
| LANE_NAME        | tests |
+------------------+-------+

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 43          |
+------+------------------+-------------+

[17:35:32]: fastlane finished with errors

However, the command fastlane finished with errors:

[17:35:32]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡️  [!] undefined method `any?' for nil:NilClass (NoMethodError)
    https://github.com/fastlane/fastlane/issues/17048 [open] 12 💬
    a week ago

➡️  NoMethodError: [!] undefined method `status' for nil:NilClass
    https://github.com/fastlane/fastlane/issues/17066 [open] 21 💬
    54 minutes ago

➡️  [supply] undefined method `map' for nil:NilClass on "draft" tracks
    https://github.com/fastlane/fastlane/issues/17086 [open] 1 💬
    a week ago

and 277 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60value%27%20for%20nil&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
Traceback (most recent call last):
    53: from /usr/local/bin/fastlane:23:in `
' 52: from /usr/local/bin/fastlane:23:in `load' 51: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/bin/fastlane:23:in `' 50: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 49: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 48: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 47: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 46: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 45: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 44: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 43: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 42: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 41: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 40: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/lane.rb:33:in `call' 35: from Fastfile:21:in `block in parsing_binding' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 31: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:166:in `run_tests_through_single_try' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:187:in `retrieve_failed_single_try_tests' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `run' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `new' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:15:in `initialize' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `block in initialize' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `new' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:29:in `initialize' 13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `block in initialize' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `new' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:47:in `initialize' 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `block in initialize' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `new' /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:87:in `initialize': [!] undefined method `value' for nil:NilClass (NoMethodError)

Is it something wrong in my lane?

desc "Multiple Cucumberish tests"
  lane :tests do
    multi_scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      #testplan: "FoodTracker2",
      invocation_based_tests: true,
      device: "iPhone",
      clean: true
    )
  end

I comment the parameter testplan because with it, multi_scan fails:

[17:46:17]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

[17:46:23]: Starting scan #1.

+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
|                                                                      Summary for scan 2.158.0                                                                      |
+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                                          |
| scheme                                         | FoodTracker2                                                                                                      |
| clean                                          | false                                                                                                             |
| output_types                                   | html,junit                                                                                                        |
| skip_detect_devices                            | false                                                                                                             |
| force_quit_simulator                           | false                                                                                                             |
| reset_simulator                                | false                                                                                                             |
| disable_slide_to_type                          | true                                                                                                              |
| reinstall_app                                  | false                                                                                                             |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodT  |
|                                                | racker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun                                                         |
| open_report                                    | false                                                                                                             |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_output                                                         |
| output_files                                   | report.html,report.junit                                                                                          |
| buildlog_path                                  | ~/Library/Logs/scan                                                                                               |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh                       |
| should_zip_build_products                      | false                                                                                                             |
| use_clang_report_name                          | false                                                                                                             |
| disable_concurrent_testing                     | true                                                                                                              |
| xcargs                                         |  -parallel-testing-enabled NO                                                                                     |
| slack_use_webhook_configured_username_and_icon | false                                                                                                             |
| slack_username                                 | fastlane                                                                                                          |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                                               |
| skip_slack                                     | false                                                                                                             |
| slack_only_on_failure                          | false                                                                                                             |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                                                 |
| fail_build                                     | true                                                                                                              |
| include_simulator_logs                         | false                                                                                                             |
| testplan                                       | FoodTracker2                                                                                                      |
| skip_build                                     | false                                                                                                             |
| xcode_path                                     | /Applications/Xcode.app                                                                                           |
| result_bundle                                  | false                                                                                                             |
| build_for_testing                              | false                                                                                                             |
+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+

[17:46:24]: Disabling 'Slide to Type' iPhone 8
[17:46:24]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
[17:46:24]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -testPlan 'FoodTracker2' -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200907-15889-11b3w99' 
[17:46:24]: ▸ Loading...
[17:46:27]: ▸ xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
[17:46:27]: Exit status: 64
[17:46:27]: 
+------------------+-------+
|       Lane Context       |
+------------------+-------+
| DEFAULT_PLATFORM | ios   |
| PLATFORM_NAME    |       |
| LANE_NAME        | tests |
+------------------+-------+
[17:46:27]: Error building/testing the application. See the log above.

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 22          |
+------+------------------+-------------+

[17:46:27]: fastlane finished with errors

[!] Error building/testing the application. See the log above.

But scan works with this parameter testplan.

lyndsey-ferguson commented 3 years ago

@EstelaDF thanks for keeping up with this. It looks like this is crashing when trying to parse a testcase element in the junit file generated from the first run. Would you be able to attach the report.junit file that was generated?

EstelaDF commented 3 years ago

@lyndsey-ferguson ok, but there are two errors.

On one hand, with this lane (no testplan parameter)

desc "Multiple Cucumberish tests"
  lane :tests do
    multi_scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      #testplan: "FoodTracker2",
      invocation_based_tests: true,
      device: "iPhone",
      clean: true
    )
  end

The error of fastlane is:

▸ Test execute Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 0 |
+--------------------+---+

+------------------+-------+
|       Lane Context       |
+------------------+-------+
| DEFAULT_PLATFORM | ios   |
| PLATFORM_NAME    |       |
| LANE_NAME        | tests |
+------------------+-------+

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 40          |
+------+------------------+-------------+

[08:06:39]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡️  [!] undefined method `any?' for nil:NilClass (NoMethodError)
    https://github.com/fastlane/fastlane/issues/17048 [open] 12 💬
    a week ago

➡️  NoMethodError: [!] undefined method `status' for nil:NilClass
    https://github.com/fastlane/fastlane/issues/17066 [open] 21 💬
    15 hours ago

➡️  [supply] undefined method `map' for nil:NilClass on "draft" tracks
    https://github.com/fastlane/fastlane/issues/17086 [open] 1 💬
    a week ago

and 277 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60value%27%20for%20nil&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
Traceback (most recent call last):
    53: from /usr/local/bin/fastlane:23:in `
' 52: from /usr/local/bin/fastlane:23:in `load' 51: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/bin/fastlane:23:in `' 50: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 49: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 48: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 47: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 46: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 45: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 44: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 43: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 42: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 41: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 40: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/lane.rb:33:in `call' 35: from Fastfile:21:in `block in parsing_binding' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 31: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:166:in `run_tests_through_single_try' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:187:in `retrieve_failed_single_try_tests' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `run' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `new' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:15:in `initialize' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `block in initialize' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `new' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:29:in `initialize' 13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `block in initialize' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `new' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:47:in `initialize' 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `block in initialize' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `new' /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:87:in `initialize': [!] undefined method `value' for nil:NilClass (NoMethodError)

I attach the file 1_report.junit.

On the other hand, when I use this lane (with testplan parameter)

desc "Multiple Cucumberish tests"
  lane :tests do
    multi_scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      testplan: "FoodTracker2",
      invocation_based_tests: true,
      device: "iPhone",
      clean: true
    )
  end

The error of fastlane is:

▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

[08:14:31]: Starting scan #1.

+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
|                                                                      Summary for scan 2.158.0                                                                      |
+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                                          |
| scheme                                         | FoodTracker2                                                                                                      |
| clean                                          | false                                                                                                             |
| output_types                                   | html,junit                                                                                                        |
| skip_detect_devices                            | false                                                                                                             |
| force_quit_simulator                           | false                                                                                                             |
| reset_simulator                                | false                                                                                                             |
| disable_slide_to_type                          | true                                                                                                              |
| reinstall_app                                  | false                                                                                                             |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodT  |
|                                                | racker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun                                                         |
| open_report                                    | false                                                                                                             |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_output                                                         |
| output_files                                   | report.html,report.junit                                                                                          |
| buildlog_path                                  | ~/Library/Logs/scan                                                                                               |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh                       |
| should_zip_build_products                      | false                                                                                                             |
| use_clang_report_name                          | false                                                                                                             |
| disable_concurrent_testing                     | true                                                                                                              |
| xcargs                                         |  -parallel-testing-enabled NO                                                                                     |
| slack_use_webhook_configured_username_and_icon | false                                                                                                             |
| slack_username                                 | fastlane                                                                                                          |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                                               |
| skip_slack                                     | false                                                                                                             |
| slack_only_on_failure                          | false                                                                                                             |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                                                 |
| fail_build                                     | true                                                                                                              |
| include_simulator_logs                         | false                                                                                                             |
| testplan                                       | FoodTracker2                                                                                                      |
| skip_build                                     | false                                                                                                             |
| xcode_path                                     | /Applications/Xcode.app                                                                                           |
| result_bundle                                  | false                                                                                                             |
| build_for_testing                              | false                                                                                                             |
+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+

[08:14:32]: Disabling 'Slide to Type' iPhone 8
[08:14:32]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
[08:14:32]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -testPlan 'FoodTracker2' -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200908-20417-tu9ulu' 
[08:14:32]: ▸ Loading...
[08:14:35]: ▸ xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
[08:14:35]: Exit status: 64
[08:14:35]: 
+------------------+-------+
|       Lane Context       |
+------------------+-------+
| DEFAULT_PLATFORM | ios   |
| PLATFORM_NAME    |       |
| LANE_NAME        | tests |
+------------------+-------+
[08:14:35]: Error building/testing the application. See the log above.

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 19          |
+------+------------------+-------------+

[08:14:35]: fastlane finished with errors

[!] Error building/testing the application. See the log above.

I attach the file 2_report.junit

Archive.zip

lyndsey-ferguson commented 3 years ago

@EstelaDF thank you for the report, for the second error, pay close attention to this error:

[08:14:35]: ▸ xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.

It seems that the FoodTracker2 Scheme does not use test plans.

Meanwhile, I look at the first error.

lyndsey-ferguson commented 3 years ago

Here is what I found:

  1. Your junit files do not have the expected name attribute for the testsuites root element, which indicates what the testable name is.
  2. I have allowed for that, and hope that it works if the testable name is not part of the test identifier.
lyndsey-ferguson commented 3 years ago

@EstelaDF please can you modify your Pluginfile per my instructions below, run bundle install, and then run your fastlane again (with the --verbose flag)?

Pluginfile:

gem 'fastlane-plugin-test_center', :git => "https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git", :branch => "issue-281-junits-with-no-name"

If there are still problems, please let me know and attach the console output as a text file to this issue (makes it easier for me to review). If it works, please let me know.

EstelaDF commented 3 years ago

@lyndsey-ferguson thanks for the response.

1) On the subject of the testplan, yes, there is a testplan in the scheme FoodTracker2, and If I use scan with the parameter testplan it works.

2) Sorry, but I don't know about testsuites, How I can obtain this for you?

3) Finally, I tried to modify my pluginfile with your command:

gem 'fastlane-plugin-test_center', :git => "https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git", :branch => "issue-281-junits-with-no-name"

But I can see this:

zsh: no such file or directory: https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git

Is everything ok with the repo and the branch?

lyndsey-ferguson commented 3 years ago

For no. 1, can you post the both the scan summary and the xcodebuild command when you run scan for the same parameters? You can see how multi_scan is working with scan to send it here:

+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
|                                                                      Summary for scan 2.158.0                                                                      |
+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                                          |
| scheme                                         | FoodTracker2                                                                                                      |
| clean                                          | false                                                                                                             |
| output_types                                   | html,junit                                                                                                        |
| skip_detect_devices                            | false                                                                                                             |
| force_quit_simulator                           | false                                                                                                             |
| reset_simulator                                | false                                                                                                             |
| disable_slide_to_type                          | true                                                                                                              |
| reinstall_app                                  | false                                                                                                             |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodT  |
|                                                | racker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun                                                         |
| open_report                                    | false                                                                                                             |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_output                                                         |
| output_files                                   | report.html,report.junit                                                                                          |
| buildlog_path                                  | ~/Library/Logs/scan                                                                                               |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh                       |
| should_zip_build_products                      | false                                                                                                             |
| use_clang_report_name                          | false                                                                                                             |
| disable_concurrent_testing                     | true                                                                                                              |
| xcargs                                         |  -parallel-testing-enabled NO                                                                                     |
| slack_use_webhook_configured_username_and_icon | false                                                                                                             |
| slack_username                                 | fastlane                                                                                                          |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                                               |
| skip_slack                                     | false                                                                                                             |
| slack_only_on_failure                          | false                                                                                                             |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                                                 |
| fail_build                                     | true                                                                                                              |
| include_simulator_logs                         | false                                                                                                             |
| testplan                                       | FoodTracker2                                                                                                      |
| skip_build                                     | false                                                                                                             |
| xcode_path                                     | /Applications/Xcode.app                                                                                           |
| result_bundle                                  | false                                                                                                             |
| build_for_testing                              | false                                                                                                             |
+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+

08:14:32]: Disabling 'Slide to Type' iPhone 8
[08:14:32]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
[08:14:32]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -testPlan 'FoodTracker2' -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200908-20417-tu9ulu' 
[08:14:32]: ▸ Loading...
[08:14:35]: ▸ xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.

👀 You can see that the summary does specify FoodTracker2 for the scheme and the testplan, while the command is passing in FoodTracker2 as the testplan and there is no mention of the scheme (that could be part of the problem).

lyndsey-ferguson commented 3 years ago

For no. 2, there isn't anything that YOU can do that I can think of to get the testable names out of the junit file, it simply is not there. It is the testable (or also known as test target) that is missing. Typically, xcpretty is generating that, and perhaps because this is a Cucumber test, it is not possible to get that info 🤷‍♂️ .

I was just sharing the observation. I think that there is a chance that simply providing the testsuite and the testcase of the failed test to xcodebuild in the only_testing may work.

A test is identified by the testable, testsuite, and testcase. Combined with / to create the name. See this for more info.

lyndsey-ferguson commented 3 years ago

For no. 3, have you run the bundle install command? What is the command that you are running before you see that error?

EstelaDF commented 3 years ago

@lyndsey-ferguson ok, for no. 1:

This is the command scan output:

[13:47:54]: ------------------------------
[13:47:54]: --- Step: default_platform ---
[13:47:54]: ------------------------------
[13:47:54]: Driving the lane 'testsScan' 🚀
[13:47:54]: ------------------
[13:47:54]: --- Step: scan ---
[13:47:54]: ------------------
[13:47:54]: Resolving Swift Package Manager dependencies...
[13:47:54]: $ xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
[13:47:54]: ▸ Command line invocation:
[13:47:54]: ▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
[13:47:55]: ▸ resolved source packages: 
[13:47:55]: $ xcodebuild -showBuildSettings -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
[13:47:56]: Ignoring 'iPhone', couldn’t find matching simulator
[13:47:56]: Couldn't find any matching simulators for '["iPhone"]' - falling back to default simulator
[13:47:56]: Found simulator "iPhone 8 (13.7)"

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| testplan                                       | FoodTracker2                                            |
| device                                         | iPhone                                                  |
| build_for_testing                              | false                                                   |
| clean                                          | true                                                    |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| open_report                                    | false                                                   |
| output_directory                               | ./fastlane/test_output                                  |
| output_types                                   | html,junit                                              |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| include_simulator_logs                         | false                                                   |
| should_zip_build_products                      | false                                                   |
| result_bundle                                  | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | false                                                   |
| skip_build                                     | false                                                   |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| xcode_path                                     | /Applications/Xcode.app                                 |
+------------------------------------------------+---------------------------------------------------------+

[13:47:56]: Disabling 'Slide to Type' iPhone 8
[13:47:56]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
[13:47:56]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace FoodTracker2.xcworkspace -scheme FoodTracker2 -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -testPlan 'FoodTracker2' clean build test | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200911-32349-13dk8i6' 
[13:47:56]: ▸ Loading...
[13:47:58]: ▸ Cleaning Pods/Cucumberish-GherkinLanguages [Debug]
 (...)
[13:48:06]: Running Tests: ▸ Touching FoodTracker2CucumberTests.xctest
[13:48:06]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest
[13:48:06]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app
[13:48:06]: ▸ 2020-09-11 13:48:06.971 xcodebuild[32391:330316]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[13:48:06]: ▸ /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Run-FoodTracker2-2020.09.11_13-47-58-+0200.xcresult/Staging/3_Test/Diagnostics/FoodTracker2CucumberTests-24FB9915-C892-4259-9B55-1915375EFAA0/FoodTracker2CucumberTests-33235E5C-F7EB-4974-8E57-AECC701A43E9/Session-FoodTracker2CucumberTests-2020-09-11_134806-B5wlyd.log
[13:48:06]: ▸ 2020-09-11 13:48:06.971 xcodebuild[32391:330131] [MT] IDETestOperationsObserverDebug: (04BBBC5C-C94D-4F1F-A5C7-397C0B1F1032) Beginning test session FoodTracker2CucumberTests-04BBBC5C-C94D-4F1F-A5C7-397C0B1F1032 at 2020-09-11 13:48:06.971 with Xcode 11E801a on target  {
[13:48:06]: ▸       SimDevice: iPhone 8 (FB3F5937-256F-49C8-8316-B0B346B375D2, iOS 13.7, Booted)
[13:48:06]: ▸ } (13.7 (17H22))
[13:48:06]: ▸ 2020-09-11 13:48:06.984 xcodebuild[32391:330131] [MT] IDETestOperationsObserverDebug: (04BBBC5C-C94D-4F1F-A5C7-397C0B1F1032) Finished requesting crash reports. Continuing with testing.
[13:48:08]: ▸ Selected tests
[13:48:08]: ▸ FoodTracker2CucumberTests-Runner.app
[13:48:08]: ▸ CCIFeaturesOfAdd
[13:48:14]: ▸     ✓ addMeal (6.467 seconds)
[13:48:14]: ▸ CCIFeaturesOfDelete
[13:48:19]: ▸     ✓ deleteNewMeal (4.437 seconds)
[13:48:19]: ▸ CCIFeaturesOfDetail
[13:48:21]: ▸     ✓ firstMealDetail (1.941 seconds)
[13:48:22]: ▸     ✓ detailOfEachMealCapreseSaladExample1 (1.926 seconds)
[13:48:24]: ▸     ✓ detailOfEachMealChickenAndPotatoesExample2 (1.923 seconds)
[13:48:26]: ▸     ✓ detailOfEachMealPastaWithMeatballsExample3 (1.931 seconds)
[13:48:28]: ▸     ✓ detailOfEachMealDonnutsExample4 (1.930 seconds)
[13:48:29]: ▸ 2020-09-11 13:48:29.044 xcodebuild[32391:330131] [MT] IDETestOperationsObserverDebug: 22.081 elapsed -- Testing started completed.
[13:48:29]: ▸ 2020-09-11 13:48:29.044 xcodebuild[32391:330131] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
[13:48:29]: ▸ 2020-09-11 13:48:29.044 xcodebuild[32391:330131] [MT] IDETestOperationsObserverDebug: 22.081 sec, +22.081 sec -- end
[13:48:29]: ▸ Test Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 0 |
+--------------------+---+

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | scan             | 35          |
+------+------------------+-------------+

[13:48:29]: fastlane.tools finished successfully 🎉

And this is the command multi_scan output:

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| device                                         | iPhone                                                  |
| clean                                          | true                                                    |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| open_report                                    | false                                                   |
| output_directory                               | ./fastlane/test_output                                  |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | false                                                   |
| build_for_testing                              | true                                                    |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
+------------------------------------------------+---------------------------------------------------------+

[13:50:30]: Disabling 'Slide to Type' iPhone 8
[13:50:30]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
[13:50:30]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace FoodTracker2.xcworkspace -scheme FoodTracker2 -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' clean build-for-testing | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200911-32778-1p8541z' 
[13:50:30]: ▸ Loading...
[13:50:32]: ▸ Cleaning FoodTracker2/FoodTracker2 [Debug]
(...)
[13:50:38]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest
[13:50:38]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app
[13:50:38]: ▸ Building FoodTracker2/FoodTracker2UITests [Debug]
[13:50:38]: ▸ Check Dependencies
[13:50:38]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

[13:50:38]: Starting scan #1.

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| clean                                          | false                                                   |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/F  |
|                                                | oodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xc  |
|                                                | testrun                                                 |
| open_report                                    | false                                                   |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_out  |
|                                                | put                                                     |
| output_files                                   | report.html,report.junit                                |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | true                                                    |
| xcargs                                         |  -parallel-testing-enabled NO                           |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| testplan                                       | FoodTracker2                                            |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
| result_bundle                                  | false                                                   |
| build_for_testing                              | false                                                   |
+------------------------------------------------+---------------------------------------------------------+

[13:50:39]: Disabling 'Slide to Type' iPhone 8
[13:50:39]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
[13:50:39]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -testPlan 'FoodTracker2' -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200911-32778-11h3akr' 
[13:50:39]: ▸ Loading...
[13:50:41]: ▸ xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
[13:50:41]: Exit status: 64
[13:50:41]: 
+------------------+-------+
|       Lane Context       |
+------------------+-------+
| DEFAULT_PLATFORM | ios   |
| PLATFORM_NAME    |       |
| LANE_NAME        | tests |
+------------------+-------+
[13:50:41]: Error building/testing the application. See the log above.

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 12          |
+------+------------------+-------------+

[13:50:41]: fastlane finished with errors

[!] Error building/testing the application. See the log above. 
lyndsey-ferguson commented 3 years ago

Ok, I have a sinking feeling in my stomach 😊 . scan is sending the Scheme, multi_scan is not. xcodebuild should really show the error associated with which scheme it is using.

Oh, and BTW, your testable, or test target, in this case is FoodTracker2CucumberTests. I could tell that because of this line:

[13:48:06]: Running Tests: ▸ Touching FoodTracker2CucumberTests.xctest
lyndsey-ferguson commented 3 years ago

I'll look into why multi_scan is misbehaving and update this test branch when I can. Looks like we have two bugs:

  1. junit helper is crashing when it cannot find the test target.
  2. multi_scan is not passing down the scheme when using a testplan.
EstelaDF commented 3 years ago

Sorry, the no. 3 I was able to modify my PluginFile and run bundle install. And when I run multi_scan with --verbose and without testplan, I can see this:

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| device                                         | iPhone                                                  |
| clean                                          | true                                                    |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| open_report                                    | false                                                   |
| output_directory                               | ./fastlane/test_output                                  |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | false                                                   |
| build_for_testing                              | true                                                    |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
+------------------------------------------------+---------------------------------------------------------+

DEBUG [2020-09-11 14:28:19.13]: Before building, removing pre-existing xctestrun files: ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"]
DEBUG [2020-09-11 14:28:19.13]: Fetching available simulator devices
INFO [2020-09-11 14:28:19.29]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-11 14:28:19.29]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-11 14:28:19.30]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace FoodTracker2.xcworkspace -scheme FoodTracker2 -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' clean build-for-testing | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200911-33928-c63l55' 
INFO [2020-09-11 14:28:19.30]: ▸ Loading...
INFO [2020-09-11 14:28:20.66]: ▸ Cleaning FoodTracker2/FoodTracker2 [Debug]
(...)
INFO [2020-09-11 14:28:27.82]: Running Tests: ▸ Touching FoodTracker2CucumberTests.xctest
INFO [2020-09-11 14:28:27.83]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest
INFO [2020-09-11 14:28:27.95]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app
INFO [2020-09-11 14:28:28.11]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-11 14:28:28.13]: After building, found xctestrun files ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"] (choosing 1st)
DEBUG [2020-09-11 14:28:28.13]: Removing report files generated by the build
DEBUG [2020-09-11 14:28:28.13]:   ./fastlane/test_output/report.html
DEBUG [2020-09-11 14:28:28.13]:   ./fastlane/test_output/report.junit
DEBUG [2020-09-11 14:28:28.13]: > setup_logcollection
DEBUG [2020-09-11 14:28:28.13]: < done in TestCenter::Helper::MultiScanManager.initialize
DEBUG [2020-09-11 14:28:28.13]: Running invocation tests
DEBUG [2020-09-11 14:28:28.14]: Deleting xcresults:
DEBUG [2020-09-11 14:28:28.14]: Restarting Simulator FB3F5937-256F-49C8-8316-B0B346B375D2
INFO [2020-09-11 14:28:34.66]: Starting scan #1.
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
DEBUG [2020-09-11 14:28:34.67]: retrying_scan #update_scan_options
DEBUG [2020-09-11 14:28:34.67]:     Setting workspace to FoodTracker2.xcworkspace
DEBUG [2020-09-11 14:28:34.67]:     Setting scheme to FoodTracker2
DEBUG [2020-09-11 14:28:34.67]:     Setting clean to false
DEBUG [2020-09-11 14:28:34.67]:     Setting output_types to html,junit
DEBUG [2020-09-11 14:28:34.67]:     Setting skip_detect_devices to false
DEBUG [2020-09-11 14:28:34.67]:     Setting reset_simulator to false
DEBUG [2020-09-11 14:28:34.67]:     Setting disable_slide_to_type to true
DEBUG [2020-09-11 14:28:34.67]:     Setting reinstall_app to false
DEBUG [2020-09-11 14:28:34.67]:     Setting xctestrun to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun
DEBUG [2020-09-11 14:28:34.67]:     Setting open_report to false
DEBUG [2020-09-11 14:28:34.67]:     Setting output_directory to /Users/estela/Documents/FoodTracker2/fastlane/test_output
DEBUG [2020-09-11 14:28:34.67]:     Setting output_files to report.html,report.junit
DEBUG [2020-09-11 14:28:34.67]:     Setting buildlog_path to ~/Library/Logs/scan
DEBUG [2020-09-11 14:28:34.67]:     Setting include_simulator_logs to false
DEBUG [2020-09-11 14:28:34.67]:     Setting derived_data_path to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh
DEBUG [2020-09-11 14:28:34.67]:     Setting should_zip_build_products to false
DEBUG [2020-09-11 14:28:34.67]:     Setting result_bundle to false
DEBUG [2020-09-11 14:28:34.67]:     Setting use_clang_report_name to false
DEBUG [2020-09-11 14:28:34.67]:     Setting disable_concurrent_testing to true
DEBUG [2020-09-11 14:28:34.67]:     Setting build_for_testing to false
DEBUG [2020-09-11 14:28:34.67]:     Setting xcargs to  -parallel-testing-enabled NO 
DEBUG [2020-09-11 14:28:34.67]:     Setting slack_use_webhook_configured_username_and_icon to false
DEBUG [2020-09-11 14:28:34.67]:     Setting slack_username to fastlane
DEBUG [2020-09-11 14:28:34.67]:     Setting slack_icon_url to https://fastlane.tools/assets/img/fastlane_icon.png
DEBUG [2020-09-11 14:28:34.67]:     Setting skip_slack to false
DEBUG [2020-09-11 14:28:34.67]:     Setting slack_only_on_failure to false
DEBUG [2020-09-11 14:28:34.67]:     Setting destination to ["platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2"]
DEBUG [2020-09-11 14:28:34.67]:     Setting xcodebuild_command to env NSUnbufferedIO=YES xcodebuild
DEBUG [2020-09-11 14:28:34.67]:     Setting fail_build to true
DEBUG [2020-09-11 14:28:34.67]:     Setting skip_build to false

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| clean                                          | false                                                   |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/F  |
|                                                | oodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xc  |
|                                                | testrun                                                 |
| open_report                                    | false                                                   |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_out  |
|                                                | put                                                     |
| output_files                                   | report.html,report.junit                                |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | true                                                    |
| xcargs                                         |  -parallel-testing-enabled NO                           |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
| result_bundle                                  | false                                                   |
| build_for_testing                              | false                                                   |
+------------------------------------------------+---------------------------------------------------------+

DEBUG [2020-09-11 14:28:34.75]: Fetching available simulator devices
INFO [2020-09-11 14:28:35.30]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-11 14:28:35.30]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-11 14:28:35.32]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200911-33928-74r2nm' 
INFO [2020-09-11 14:28:35.32]: ▸ Loading...
INFO [2020-09-11 14:28:38.45]: ▸ 2020-09-11 14:28:38.450 xcodebuild[34349:374261]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
INFO [2020-09-11 14:28:38.45]: ▸ /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.11_14-28-38-+0200.xcresult/Staging/1_Test/Diagnostics/FoodTracker2CucumberTests-F4CEB522-5F0E-4BEA-9AF7-8CF9C61CC177/FoodTracker2CucumberTests-33A28703-2C07-4432-B551-D8B5978D24E3/Session-FoodTracker2CucumberTests-2020-09-11_142838-lRJUc4.log
INFO [2020-09-11 14:28:38.45]: ▸ 2020-09-11 14:28:38.450 xcodebuild[34349:372460] [MT] IDETestOperationsObserverDebug: (9B7C4B42-56D3-4593-8AC9-D902B564A64C) Beginning test session FoodTracker2CucumberTests-9B7C4B42-56D3-4593-8AC9-D902B564A64C at 2020-09-11 14:28:38.450 with Xcode 11E801a on target  {
INFO [2020-09-11 14:28:38.45]: ▸        SimDevice: iPhone 8 (FB3F5937-256F-49C8-8316-B0B346B375D2, iOS 13.7, Booted)
INFO [2020-09-11 14:28:38.45]: ▸ } (13.7 (17H22))
INFO [2020-09-11 14:28:38.93]: ▸ 2020-09-11 14:28:38.930 xcodebuild[34349:372460] [MT] IDETestOperationsObserverDebug: (9B7C4B42-56D3-4593-8AC9-D902B564A64C) Finished requesting crash reports. Continuing with testing.
INFO [2020-09-11 14:28:41.63]: ▸ Selected tests
INFO [2020-09-11 14:28:41.63]: ▸ FoodTracker2CucumberTests-Runner.app
INFO [2020-09-11 14:28:41.63]: ▸ CCIFeaturesOfAdd
INFO [2020-09-11 14:28:47.84]: ▸     ✓ addMeal (6.210 seconds)
INFO [2020-09-11 14:28:47.84]: ▸ CCIFeaturesOfDelete
INFO [2020-09-11 14:28:52.21]: ▸     ✓ deleteNewMeal (4.369 seconds)
INFO [2020-09-11 14:28:52.21]: ▸ CCIFeaturesOfDetail
INFO [2020-09-11 14:28:54.12]: ▸     ✓ firstMealDetail (1.901 seconds)
INFO [2020-09-11 14:28:56.03]: ▸     ✓ detailOfEachMealCapreseSaladExample1 (1.909 seconds)
INFO [2020-09-11 14:28:58.48]: ▸     ✓ detailOfEachMealChickenAndPotatoesExample2 (2.447 seconds)
INFO [2020-09-11 14:29:00.40]: ▸     ✓ detailOfEachMealPastaWithMeatballsExample3 (1.924 seconds)
INFO [2020-09-11 14:29:02.31]: ▸     ✓ detailOfEachMealDonnutsExample4 (1.915 seconds)
INFO [2020-09-11 14:29:02.58]: ▸ 2020-09-11 14:29:02.589 xcodebuild[34349:372460] [MT] IDETestOperationsObserverDebug: 24.149 elapsed -- Testing started completed.
INFO [2020-09-11 14:29:02.59]: ▸ 2020-09-11 14:29:02.589 xcodebuild[34349:372460] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
INFO [2020-09-11 14:29:02.59]: ▸ 2020-09-11 14:29:02.589 xcodebuild[34349:372460] [MT] IDETestOperationsObserverDebug: 24.149 sec, +24.149 sec -- end
INFO [2020-09-11 14:29:03.03]: ▸ Test execute Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-11 14:29:03.05]: Batch # incrementing retry count to 1
DEBUG [2020-09-11 14:29:03.05]: Scan passed the tests
DEBUG [2020-09-11 14:29:03.05]: ReportCollator collating
WARN [2020-09-11 14:29:03.05]: Lane Context:
INFO [2020-09-11 14:29:03.05]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"tests"}
INFO [2020-09-11 14:29:03.05]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 46          |
+------+------------------+-------------+

DEBUG [2020-09-11 14:29:03.08]: All plugins are up to date
ERROR [2020-09-11 14:29:03.08]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...
Search query: undefined method `value' for nil

URL: https://api.github.com/search/issues?q=undefined%20method%20%60value%27%20for%20nil+repo:fastlane/fastlane
➡️  [!] undefined method `any?' for nil:NilClass (NoMethodError)
    https://github.com/fastlane/fastlane/issues/17048 [open] 12 💬
    2 weeks ago

➡️  undefined method `get_app_info_localizations' for nil
    https://github.com/fastlane/fastlane/issues/17208 [open] 0 💬
    a day ago

➡️  [supply] undefined method `map' for nil:NilClass on "draft" tracks
    https://github.com/fastlane/fastlane/issues/17086 [open] 1 💬
    2 weeks ago

and 279 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60value%27%20for%20nil&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
DEBUG [2020-09-11 14:29:04.53]: All plugins are up to date
Traceback (most recent call last):
    53: from /usr/local/bin/fastlane:23:in `
' 52: from /usr/local/bin/fastlane:23:in `load' 51: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `' 50: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 49: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 48: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 47: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 46: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 45: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 44: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 43: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 42: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 41: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 40: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call' 35: from Fastfile:21:in `block in parsing_binding' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 31: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:166:in `run_tests_through_single_try' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:187:in `retrieve_failed_single_try_tests' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `run' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `new' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:15:in `initialize' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `block in initialize' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `new' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:29:in `initialize' 13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `block in initialize' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `new' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:47:in `initialize' 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `block in initialize' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `new' /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:87:in `initialize': undefined method `value' for nil:NilClass (NoMethodError) 53: from /usr/local/bin/fastlane:23:in `
' 52: from /usr/local/bin/fastlane:23:in `load' 51: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `' 50: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 49: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 48: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 47: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 46: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 45: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 44: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 43: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 42: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 41: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 40: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call' 35: from Fastfile:21:in `block in parsing_binding' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 31: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:166:in `run_tests_through_single_try' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:187:in `retrieve_failed_single_try_tests' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `run' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `new' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:15:in `initialize' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `block in initialize' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `new' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:29:in `initialize' 13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `block in initialize' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `new' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:47:in `initialize' 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `block in initialize' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `new' /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:87:in `initialize': [!] undefined method `value' for nil:NilClass (NoMethodError)
lyndsey-ferguson commented 3 years ago

I have my doubts that this is using the correct version of the Gem that I posted.

Can you check if your Gemfile.lock file starts with something like this?

GIT
  remote: https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git
  revision: f613c36ef84b179d863fc5f2e309474a07eeb2f3
  branch: issue-281-junits-with-no-name
  specs:
    fastlane-plugin-test_center (...)
      colorize
      json
      plist
      xcodeproj
      xctest_list (...)

After following the above instructions?

EstelaDF commented 3 years ago

Ok, my Gemfile.lock file starts like:

GIT
  remote: https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git
  revision: f613c36ef84b179d863fc5f2e309474a07eeb2f3
  branch: issue-281-junits-with-no-name
  specs:
    fastlane-plugin-test_center (3.14.2)
      colorize
      json
      plist
      trainer
      xcodeproj
      xctest_list (>= 1.2.1)

Now, I will follow the instructions and I will comment you.

EstelaDF commented 3 years ago

After I followed the instructions, the result is the same:

* Without testplan:

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| device                                         | iPhone                                                  |
| clean                                          | true                                                    |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| open_report                                    | false                                                   |
| output_directory                               | ./fastlane/test_output                                  |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | false                                                   |
| build_for_testing                              | true                                                    |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
+------------------------------------------------+---------------------------------------------------------+

DEBUG [2020-09-14 09:14:40.32]: Before building, removing pre-existing xctestrun files: ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"]
DEBUG [2020-09-14 09:14:40.32]: Fetching available simulator devices
INFO [2020-09-14 09:14:40.47]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-14 09:14:40.47]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-14 09:14:40.48]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace FoodTracker2.xcworkspace -scheme FoodTracker2 -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' clean build-for-testing | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200914-37682-h5kf6h' 
INFO [2020-09-14 09:14:40.48]: ▸ Loading...
INFO [2020-09-14 09:14:41.82]: ▸ Cleaning Pods/Cucumberish-GherkinLanguages [Debug]
(...)
INFO [2020-09-14 09:14:47.64]: ▸ Running script '[CP] Embed Pods Frameworks'
INFO [2020-09-14 09:14:48.54]: Running Tests: ▸ Touching FoodTracker2CucumberTests.xctest
INFO [2020-09-14 09:14:48.54]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest
INFO [2020-09-14 09:14:48.68]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app
INFO [2020-09-14 09:14:48.83]: ▸ Building FoodTracker2/FoodTracker2UITests [Debug]
INFO [2020-09-14 09:14:48.83]: ▸ Check Dependencies
INFO [2020-09-14 09:14:48.84]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-14 09:14:48.86]: After building, found xctestrun files ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"] (choosing 1st)
DEBUG [2020-09-14 09:14:48.86]: Removing report files generated by the build
DEBUG [2020-09-14 09:14:48.86]:   ./fastlane/test_output/report.html
DEBUG [2020-09-14 09:14:48.86]:   ./fastlane/test_output/report.junit
DEBUG [2020-09-14 09:14:48.86]: > setup_logcollection
DEBUG [2020-09-14 09:14:48.86]: < done in TestCenter::Helper::MultiScanManager.initialize
DEBUG [2020-09-14 09:14:48.86]: Running invocation tests
DEBUG [2020-09-14 09:14:48.86]: Deleting xcresults:
DEBUG [2020-09-14 09:14:48.86]:   /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.11_14-28-38-+0200.xcresult
DEBUG [2020-09-14 09:14:48.88]: Restarting Simulator FB3F5937-256F-49C8-8316-B0B346B375D2
INFO [2020-09-14 09:14:49.35]: Starting scan #1.
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
DEBUG [2020-09-14 09:14:49.37]: retrying_scan #update_scan_options
DEBUG [2020-09-14 09:14:49.37]:     Setting workspace to FoodTracker2.xcworkspace
DEBUG [2020-09-14 09:14:49.37]:     Setting scheme to FoodTracker2
DEBUG [2020-09-14 09:14:49.37]:     Setting clean to false
DEBUG [2020-09-14 09:14:49.37]:     Setting output_types to html,junit
DEBUG [2020-09-14 09:14:49.37]:     Setting skip_detect_devices to false
DEBUG [2020-09-14 09:14:49.37]:     Setting reset_simulator to false
DEBUG [2020-09-14 09:14:49.37]:     Setting disable_slide_to_type to true
DEBUG [2020-09-14 09:14:49.37]:     Setting reinstall_app to false
DEBUG [2020-09-14 09:14:49.37]:     Setting xctestrun to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun
DEBUG [2020-09-14 09:14:49.37]:     Setting open_report to false
DEBUG [2020-09-14 09:14:49.37]:     Setting output_directory to /Users/estela/Documents/FoodTracker2/fastlane/test_output
DEBUG [2020-09-14 09:14:49.37]:     Setting output_files to report.html,report.junit
DEBUG [2020-09-14 09:14:49.37]:     Setting buildlog_path to ~/Library/Logs/scan
DEBUG [2020-09-14 09:14:49.37]:     Setting include_simulator_logs to false
DEBUG [2020-09-14 09:14:49.37]:     Setting derived_data_path to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh
DEBUG [2020-09-14 09:14:49.37]:     Setting should_zip_build_products to false
DEBUG [2020-09-14 09:14:49.37]:     Setting result_bundle to false
DEBUG [2020-09-14 09:14:49.37]:     Setting use_clang_report_name to false
DEBUG [2020-09-14 09:14:49.37]:     Setting disable_concurrent_testing to true
DEBUG [2020-09-14 09:14:49.38]:     Setting build_for_testing to false
DEBUG [2020-09-14 09:14:49.38]:     Setting xcargs to  -parallel-testing-enabled NO 
DEBUG [2020-09-14 09:14:49.38]:     Setting slack_use_webhook_configured_username_and_icon to false
DEBUG [2020-09-14 09:14:49.38]:     Setting slack_username to fastlane
DEBUG [2020-09-14 09:14:49.38]:     Setting slack_icon_url to https://fastlane.tools/assets/img/fastlane_icon.png
DEBUG [2020-09-14 09:14:49.38]:     Setting skip_slack to false
DEBUG [2020-09-14 09:14:49.38]:     Setting slack_only_on_failure to false
DEBUG [2020-09-14 09:14:49.38]:     Setting destination to ["platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2"]
DEBUG [2020-09-14 09:14:49.38]:     Setting xcodebuild_command to env NSUnbufferedIO=YES xcodebuild
DEBUG [2020-09-14 09:14:49.38]:     Setting fail_build to true
DEBUG [2020-09-14 09:14:49.38]:     Setting skip_build to false

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| clean                                          | false                                                   |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/F  |
|                                                | oodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xc  |
|                                                | testrun                                                 |
| open_report                                    | false                                                   |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_out  |
|                                                | put                                                     |
| output_files                                   | report.html,report.junit                                |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | true                                                    |
| xcargs                                         |  -parallel-testing-enabled NO                           |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
| result_bundle                                  | false                                                   |
| build_for_testing                              | false                                                   |
+------------------------------------------------+---------------------------------------------------------+

DEBUG [2020-09-14 09:14:49.49]: Fetching available simulator devices
INFO [2020-09-14 09:14:50.15]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-14 09:14:50.15]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-14 09:14:50.17]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200914-37682-mir3cg' 
INFO [2020-09-14 09:14:50.17]: ▸ Loading...
INFO [2020-09-14 09:14:52.34]: ▸ 2020-09-14 09:14:52.343 xcodebuild[38121:544752]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
INFO [2020-09-14 09:14:52.34]: ▸ /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.14_09-14-52-+0200.xcresult/Staging/1_Test/Diagnostics/FoodTracker2CucumberTests-234925CC-02E7-4CC9-9368-07E5F1DD4841/FoodTracker2CucumberTests-CAB85C09-A1EE-4575-AE69-92304EA3E8E4/Session-FoodTracker2CucumberTests-2020-09-14_091452-9r4Hja.log
INFO [2020-09-14 09:14:52.35]: ▸ 2020-09-14 09:14:52.351 xcodebuild[38121:543856] [MT] IDETestOperationsObserverDebug: (753E9162-A1F5-4D15-BCBF-4F48F1D515B0) Beginning test session FoodTracker2CucumberTests-753E9162-A1F5-4D15-BCBF-4F48F1D515B0 at 2020-09-14 09:14:52.351 with Xcode 11E801a on target  {
INFO [2020-09-14 09:14:52.35]: ▸        SimDevice: iPhone 8 (FB3F5937-256F-49C8-8316-B0B346B375D2, iOS 13.7, Booted)
INFO [2020-09-14 09:14:52.35]: ▸ } (13.7 (17H22))
INFO [2020-09-14 09:14:55.15]: ▸ 2020-09-14 09:14:55.159 xcodebuild[38121:543856] [MT] IDETestOperationsObserverDebug: (753E9162-A1F5-4D15-BCBF-4F48F1D515B0) Finished requesting crash reports. Continuing with testing.
INFO [2020-09-14 09:14:58.14]: ▸ Selected tests
INFO [2020-09-14 09:14:58.14]: ▸ FoodTracker2CucumberTests-Runner.app
INFO [2020-09-14 09:14:58.14]: ▸ CCIFeaturesOfAdd
INFO [2020-09-14 09:15:04.77]: ▸     ✓ addMeal (6.623 seconds)
INFO [2020-09-14 09:15:04.77]: ▸ CCIFeaturesOfDelete
INFO [2020-09-14 09:15:09.20]: ▸     ✓ deleteNewMeal (4.429 seconds)
INFO [2020-09-14 09:15:09.20]: ▸ CCIFeaturesOfDetail
INFO [2020-09-14 09:15:11.11]: ▸     ✓ firstMealDetail (1.913 seconds)
INFO [2020-09-14 09:15:13.03]: ▸     ✓ detailOfEachMealCapreseSaladExample1 (1.919 seconds)
INFO [2020-09-14 09:15:14.95]: ▸     ✓ detailOfEachMealChickenAndPotatoesExample2 (1.918 seconds)
INFO [2020-09-14 09:15:16.87]: ▸     ✓ detailOfEachMealPastaWithMeatballsExample3 (1.921 seconds)
INFO [2020-09-14 09:15:18.77]: ▸     ✓ detailOfEachMealDonnutsExample4 (1.904 seconds)
INFO [2020-09-14 09:15:19.05]: ▸ 2020-09-14 09:15:19.053 xcodebuild[38121:543856] [MT] IDETestOperationsObserverDebug: 26.724 elapsed -- Testing started completed.
INFO [2020-09-14 09:15:19.05]: ▸ 2020-09-14 09:15:19.053 xcodebuild[38121:543856] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
INFO [2020-09-14 09:15:19.05]: ▸ 2020-09-14 09:15:19.053 xcodebuild[38121:543856] [MT] IDETestOperationsObserverDebug: 26.724 sec, +26.724 sec -- end
INFO [2020-09-14 09:15:19.50]: ▸ Test execute Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-14 09:15:19.52]: Batch # incrementing retry count to 1
DEBUG [2020-09-14 09:15:19.52]: Scan passed the tests
DEBUG [2020-09-14 09:15:19.52]: ReportCollator collating
WARN [2020-09-14 09:15:19.52]: Lane Context:
INFO [2020-09-14 09:15:19.52]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"tests"}
INFO [2020-09-14 09:15:19.52]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 41          |
+------+------------------+-------------+

DEBUG [2020-09-14 09:15:19.54]: All plugins are up to date
ERROR [2020-09-14 09:15:19.55]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...
Search query: undefined method `value' for nil

URL: https://api.github.com/search/issues?q=undefined%20method%20%60value%27%20for%20nil+repo:fastlane/fastlane
➡️  [!] undefined method `any?' for nil:NilClass (NoMethodError)
    https://github.com/fastlane/fastlane/issues/17048 [open] 12 💬
    2 weeks ago

➡️  undefined method `get_app_info_localizations' for nil
    https://github.com/fastlane/fastlane/issues/17208 [open] 0 💬
    3 days ago

➡️  [supply] undefined method `map' for nil:NilClass on "draft" tracks
    https://github.com/fastlane/fastlane/issues/17086 [open] 1 💬
    2 weeks ago

and 279 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60value%27%20for%20nil&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
DEBUG [2020-09-14 09:15:21.28]: All plugins are up to date
Traceback (most recent call last):
    53: from /usr/local/bin/fastlane:23:in `
' 52: from /usr/local/bin/fastlane:23:in `load' 51: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `' 50: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 49: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 48: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 47: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 46: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 45: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 44: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 43: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 42: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 41: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 40: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call' 35: from Fastfile:21:in `block in parsing_binding' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 31: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:166:in `run_tests_through_single_try' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:187:in `retrieve_failed_single_try_tests' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `run' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `new' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:15:in `initialize' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `block in initialize' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `new' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:29:in `initialize' 13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `block in initialize' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `new' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:47:in `initialize' 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `block in initialize' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `new' /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:87:in `initialize': undefined method `value' for nil:NilClass (NoMethodError) 53: from /usr/local/bin/fastlane:23:in `
' 52: from /usr/local/bin/fastlane:23:in `load' 51: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `' 50: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 49: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 48: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 47: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 46: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 45: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 44: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 43: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 42: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 41: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 40: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call' 35: from Fastfile:21:in `block in parsing_binding' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 31: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:166:in `run_tests_through_single_try' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:187:in `retrieve_failed_single_try_tests' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `run' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `new' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:15:in `initialize' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `block in initialize' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `new' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:29:in `initialize' 13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `block in initialize' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `new' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:47:in `initialize' 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `block in initialize' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `new' /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:87:in `initialize': [!] undefined method `value' for nil:NilClass (NoMethodError)

* With testplan:

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| device                                         | iPhone                                                  |
| clean                                          | true                                                    |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| open_report                                    | false                                                   |
| output_directory                               | ./fastlane/test_output                                  |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | false                                                   |
| build_for_testing                              | true                                                    |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
+------------------------------------------------+---------------------------------------------------------+

DEBUG [2020-09-14 09:23:28.61]: Before building, removing pre-existing xctestrun files: ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"]
DEBUG [2020-09-14 09:23:28.61]: Fetching available simulator devices
INFO [2020-09-14 09:23:28.76]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-14 09:23:28.76]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-14 09:23:28.80]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace FoodTracker2.xcworkspace -scheme FoodTracker2 -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' clean build-for-testing | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200914-39214-1g09pkj' 
INFO [2020-09-14 09:23:28.80]: ▸ Loading...
INFO [2020-09-14 09:23:30.13]: ▸ Cleaning FoodTracker2/FoodTracker2 [Debug]
(...)
INFO [2020-09-14 09:23:34.31]: ▸ Copying FoodTracker2CucumberTests/Features
INFO [2020-09-14 09:23:34.31]: ▸ Running script '[CP] Embed Pods Frameworks'
INFO [2020-09-14 09:23:35.00]: Running Tests: ▸ Touching FoodTracker2CucumberTests.xctest
INFO [2020-09-14 09:23:35.01]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest
INFO [2020-09-14 09:23:35.15]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app
INFO [2020-09-14 09:23:35.31]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-14 09:23:35.33]: After building, found xctestrun files ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"] (choosing 1st)
DEBUG [2020-09-14 09:23:35.33]: Removing report files generated by the build
DEBUG [2020-09-14 09:23:35.33]:   ./fastlane/test_output/report.html
DEBUG [2020-09-14 09:23:35.33]:   ./fastlane/test_output/report.junit
DEBUG [2020-09-14 09:23:35.33]: > setup_logcollection
DEBUG [2020-09-14 09:23:35.33]: < done in TestCenter::Helper::MultiScanManager.initialize
DEBUG [2020-09-14 09:23:35.33]: Running invocation tests
DEBUG [2020-09-14 09:23:35.33]: Deleting xcresults:
DEBUG [2020-09-14 09:23:35.33]: Restarting Simulator FB3F5937-256F-49C8-8316-B0B346B375D2
INFO [2020-09-14 09:23:41.83]: Starting scan #1.
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
DEBUG [2020-09-14 09:23:41.84]: retrying_scan #update_scan_options
DEBUG [2020-09-14 09:23:41.84]:     Setting workspace to FoodTracker2.xcworkspace
DEBUG [2020-09-14 09:23:41.84]:     Setting scheme to FoodTracker2
DEBUG [2020-09-14 09:23:41.84]:     Setting testplan to FoodTracker2
DEBUG [2020-09-14 09:23:41.84]:     Setting clean to false
DEBUG [2020-09-14 09:23:41.84]:     Setting output_types to html,junit
DEBUG [2020-09-14 09:23:41.84]:     Setting skip_detect_devices to false
DEBUG [2020-09-14 09:23:41.84]:     Setting reset_simulator to false
DEBUG [2020-09-14 09:23:41.84]:     Setting disable_slide_to_type to true
DEBUG [2020-09-14 09:23:41.84]:     Setting reinstall_app to false
DEBUG [2020-09-14 09:23:41.84]:     Setting xctestrun to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun
DEBUG [2020-09-14 09:23:41.84]:     Setting open_report to false
DEBUG [2020-09-14 09:23:41.84]:     Setting output_directory to /Users/estela/Documents/FoodTracker2/fastlane/test_output
DEBUG [2020-09-14 09:23:41.84]:     Setting output_files to report.html,report.junit
DEBUG [2020-09-14 09:23:41.84]:     Setting buildlog_path to ~/Library/Logs/scan
DEBUG [2020-09-14 09:23:41.84]:     Setting include_simulator_logs to false
DEBUG [2020-09-14 09:23:41.84]:     Setting derived_data_path to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh
DEBUG [2020-09-14 09:23:41.84]:     Setting should_zip_build_products to false
DEBUG [2020-09-14 09:23:41.84]:     Setting result_bundle to false
DEBUG [2020-09-14 09:23:41.84]:     Setting use_clang_report_name to false
DEBUG [2020-09-14 09:23:41.84]:     Setting disable_concurrent_testing to true
DEBUG [2020-09-14 09:23:41.84]:     Setting build_for_testing to false
DEBUG [2020-09-14 09:23:41.84]:     Setting xcargs to  -parallel-testing-enabled NO 
DEBUG [2020-09-14 09:23:41.84]:     Setting slack_use_webhook_configured_username_and_icon to false
DEBUG [2020-09-14 09:23:41.84]:     Setting slack_username to fastlane
DEBUG [2020-09-14 09:23:41.84]:     Setting slack_icon_url to https://fastlane.tools/assets/img/fastlane_icon.png
DEBUG [2020-09-14 09:23:41.84]:     Setting skip_slack to false
DEBUG [2020-09-14 09:23:41.84]:     Setting slack_only_on_failure to false
DEBUG [2020-09-14 09:23:41.84]:     Setting destination to ["platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2"]
DEBUG [2020-09-14 09:23:41.84]:     Setting xcodebuild_command to env NSUnbufferedIO=YES xcodebuild
DEBUG [2020-09-14 09:23:41.84]:     Setting fail_build to true
DEBUG [2020-09-14 09:23:41.84]:     Setting skip_build to false

+------------------------------------------------+---------------------------------------------------------+
|                                         Summary for scan 2.159.0                                         |
+------------------------------------------------+---------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                |
| scheme                                         | FoodTracker2                                            |
| clean                                          | false                                                   |
| output_types                                   | html,junit                                              |
| skip_detect_devices                            | false                                                   |
| force_quit_simulator                           | false                                                   |
| reset_simulator                                | false                                                   |
| disable_slide_to_type                          | true                                                    |
| reinstall_app                                  | false                                                   |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/F  |
|                                                | oodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xc  |
|                                                | testrun                                                 |
| open_report                                    | false                                                   |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_out  |
|                                                | put                                                     |
| output_files                                   | report.html,report.junit                                |
| buildlog_path                                  | ~/Library/Logs/scan                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/Food  |
|                                                | Tracker2-gejaozxwqyuvkuefuccelbzkdwgh                   |
| should_zip_build_products                      | false                                                   |
| use_clang_report_name                          | false                                                   |
| disable_concurrent_testing                     | true                                                    |
| xcargs                                         |  -parallel-testing-enabled NO                           |
| slack_use_webhook_configured_username_and_icon | false                                                   |
| slack_username                                 | fastlane                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png     |
| skip_slack                                     | false                                                   |
| slack_only_on_failure                          | false                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                       |
| fail_build                                     | true                                                    |
| include_simulator_logs                         | false                                                   |
| testplan                                       | FoodTracker2                                            |
| skip_build                                     | false                                                   |
| xcode_path                                     | /Applications/Xcode.app                                 |
| result_bundle                                  | false                                                   |
| build_for_testing                              | false                                                   |
+------------------------------------------------+---------------------------------------------------------+

DEBUG [2020-09-14 09:23:41.86]: Fetching available simulator devices
INFO [2020-09-14 09:23:42.24]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-14 09:23:42.24]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-14 09:23:42.26]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -testPlan 'FoodTracker2' -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200914-39214-7zc9d9' 
INFO [2020-09-14 09:23:42.26]: ▸ Loading...
INFO [2020-09-14 09:23:44.26]: ▸ xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
xcodebuild: error: The flag -testPlan  cannot be used since the scheme does not use test plans.
ERROR [2020-09-14 09:23:44.28]: Exit status: 64
DEBUG [2020-09-14 09:23:44.29]: Batch # incrementing retry count to 1
DEBUG [2020-09-14 09:23:44.29]: Scan unable to test
ERROR [2020-09-14 09:23:44.29]: 
WARN [2020-09-14 09:23:44.29]: Lane Context:
INFO [2020-09-14 09:23:44.29]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"tests"}
ERROR [2020-09-14 09:23:44.29]: Error building/testing the application. See the log above.
INFO [2020-09-14 09:23:44.29]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 17          |
+------+------------------+-------------+

DEBUG [2020-09-14 09:23:44.30]: All plugins are up to date
ERROR [2020-09-14 09:23:44.30]: fastlane finished with errors
DEBUG [2020-09-14 09:23:44.30]: All plugins are up to date
Traceback (most recent call last):
    37: from /usr/local/bin/fastlane:23:in `
' 36: from /usr/local/bin/fastlane:23:in `load' 35: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 31: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 29: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 28: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 27: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 20: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call' 19: from Fastfile:21:in `block in parsing_binding' 18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 12: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 11: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 10: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:151:in `run_tests_through_single_try' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/retrying_scan.rb:59:in `run' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/retrying_scan.rb:73:in `run' 6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:22:in `run' 5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:64:in `test_app' 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/command_executor.rb:90:in `execute' 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:73:in `block in test_app' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/error_handler.rb:46:in `handle_build_error' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!': Error building/testing the application. See the log above. (FastlaneCore::Interface::FastlaneBuildFailure) 37: from /usr/local/bin/fastlane:23:in `
' 36: from /usr/local/bin/fastlane:23:in `load' 35: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 31: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 29: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 28: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 27: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 20: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call' 19: from Fastfile:21:in `block in parsing_binding' 18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 12: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 11: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 10: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:151:in `run_tests_through_single_try' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/retrying_scan.rb:59:in `run' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/retrying_scan.rb:73:in `run' 6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:22:in `run' 5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:64:in `test_app' 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/command_executor.rb:90:in `execute' 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:73:in `block in test_app' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/error_handler.rb:46:in `handle_build_error' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!': [!] Error building/testing the application. See the log above. (FastlaneCore::Interface::FastlaneBuildFailure)
lyndsey-ferguson commented 3 years ago

@EstelaDF let's focus on the problem without the testplan for now. I don't understand how it could be failing as there is special code to not try and get the value if the name attribute yields nil.

I've put in a special debug message to make sure that the the lane is using my changes. Please, can you modify your Pluginfile per my instructions below, remove the Gemfile.lock file, run bundle install, and then run your fastlane again (with the --verbose flag)?

Pluginfile:

gem 'fastlane-plugin-test_center', :git => "https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git", :branch => "issue-281-junits-with-no-name"

The Gemfile.lock git commit sha after running bundle install should be dfed627a06daff5b25032bf9e80fb2bda63b6d4b

When your lane is run, you should see a message similar to About to parse testsuites with attributes {"name"=>name='BagOfTests.xctest', "tests"=>tests='2', "failures"=>failures='1'}, which is produced by this change

EstelaDF commented 3 years ago

@lyndsey-ferguson sorry, I also think my lane isn't use your changes because:

1) I removed my Gemfile.lock file 2) I modified my Pluginfile with: gem 'fastlane-plugin-test_center', :git => "https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git", :branch => "issue-281-junits-with-no-name" 3) I ran bundle install 4) I ran my lane with --verbose

And I don't see the message that you said.

My output, after run my lane is:

INFO [2020-09-15 10:57:15.64]: ------------------------------
INFO [2020-09-15 10:57:15.64]: --- Step: default_platform ---
INFO [2020-09-15 10:57:15.64]: ------------------------------
INFO [2020-09-15 10:57:15.64]: Driving the lane 'tests' 🚀
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-15 10:57:15.66]: ------------------------
INFO [2020-09-15 10:57:15.66]: --- Step: multi_scan ---
INFO [2020-09-15 10:57:15.66]: ------------------------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------

+------------------------+---------------------+
| Summary for multi_scan (test_center v3.14.2) |
+------------------------+---------------------+
| invocation_based_tests | true                |
+------------------------+---------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-15 10:57:15.68]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
DEBUG [2020-09-15 10:57:15.68]: Building the project in preparation for multi_scan testing
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-15 10:57:15.68]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
WARN [2020-09-15 10:57:15.86]: Resolving Swift Package Manager dependencies...
INFO [2020-09-15 10:57:15.86]: $ xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
INFO [2020-09-15 10:57:16.33]: ▸ Command line invocation:
INFO [2020-09-15 10:57:16.33]: ▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
INFO [2020-09-15 10:57:16.64]: ▸ resolved source packages: 
INFO [2020-09-15 10:57:16.65]: $ xcodebuild -showBuildSettings -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
DEBUG [2020-09-15 10:57:17.53]: Fetching available simulator devices
ERROR [2020-09-15 10:57:17.68]: Ignoring 'iPhone', couldn’t find matching simulator
ERROR [2020-09-15 10:57:17.68]: Couldn't find any matching simulators for '["iPhone"]' - falling back to default simulator
INFO [2020-09-15 10:57:17.68]: Found simulator "iPhone 8 (13.7)"
DEBUG [2020-09-15 10:57:17.68]: Detected derived data path '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh'

+------------------------------------------------+---------------------------------------------------------------------------------------------+
|                                                           Summary for scan 2.159.0                                                           |
+------------------------------------------------+---------------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                    |
| scheme                                         | FoodTracker2                                                                                |
| device                                         | iPhone                                                                                      |
| clean                                          | true                                                                                        |
| output_types                                   | html,junit                                                                                  |
| skip_detect_devices                            | false                                                                                       |
| force_quit_simulator                           | false                                                                                       |
| reset_simulator                                | false                                                                                       |
| disable_slide_to_type                          | true                                                                                        |
| reinstall_app                                  | false                                                                                       |
| open_report                                    | false                                                                                       |
| output_directory                               | ./fastlane/test_output                                                                      |
| buildlog_path                                  | ~/Library/Logs/scan                                                                         |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh |
| should_zip_build_products                      | false                                                                                       |
| use_clang_report_name                          | false                                                                                       |
| disable_concurrent_testing                     | false                                                                                       |
| build_for_testing                              | true                                                                                        |
| slack_use_webhook_configured_username_and_icon | false                                                                                       |
| slack_username                                 | fastlane                                                                                    |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                         |
| skip_slack                                     | false                                                                                       |
| slack_only_on_failure                          | false                                                                                       |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                           |
| fail_build                                     | true                                                                                        |
| include_simulator_logs                         | false                                                                                       |
| skip_build                                     | false                                                                                       |
| xcode_path                                     | /Applications/Xcode.app                                                                     |
+------------------------------------------------+---------------------------------------------------------------------------------------------+

DEBUG [2020-09-15 10:57:17.71]: Before building, removing pre-existing xctestrun files: ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"]
DEBUG [2020-09-15 10:57:17.71]: Fetching available simulator devices
INFO [2020-09-15 10:57:17.86]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-15 10:57:17.86]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-15 10:57:17.87]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace FoodTracker2.xcworkspace -scheme FoodTracker2 -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' clean build-for-testing | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200915-19212-7e652k' 
INFO [2020-09-15 10:57:17.87]: ▸ Loading...
INFO [2020-09-15 10:57:19.20]: ▸ Cleaning Pods/Cucumberish-GherkinLanguages [Debug]
(...)
INFO [2020-09-15 10:57:24.52]: ▸ Running script '[CP] Embed Pods Frameworks'
INFO [2020-09-15 10:57:25.35]: Running Tests: ▸ Touching FoodTracker2CucumberTests.xctest
INFO [2020-09-15 10:57:25.35]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest
INFO [2020-09-15 10:57:25.50]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app
INFO [2020-09-15 10:57:25.65]: ▸ Building FoodTracker2/FoodTracker2UITests [Debug]
INFO [2020-09-15 10:57:25.65]: ▸ Check Dependencies
INFO [2020-09-15 10:57:25.66]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-15 10:57:25.67]: After building, found xctestrun files ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"] (choosing 1st)
DEBUG [2020-09-15 10:57:25.67]: Removing report files generated by the build
DEBUG [2020-09-15 10:57:25.67]:   ./fastlane/test_output/report.html
DEBUG [2020-09-15 10:57:25.67]:   ./fastlane/test_output/report.junit
DEBUG [2020-09-15 10:57:25.67]: > setup_logcollection
DEBUG [2020-09-15 10:57:25.67]: < done in TestCenter::Helper::MultiScanManager.initialize
DEBUG [2020-09-15 10:57:25.67]: Running invocation tests
DEBUG [2020-09-15 10:57:25.68]: Deleting xcresults:
DEBUG [2020-09-15 10:57:25.68]:   /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.15_08-56-53-+0200.xcresult
DEBUG [2020-09-15 10:57:25.70]: Restarting Simulator FB3F5937-256F-49C8-8316-B0B346B375D2
INFO [2020-09-15 10:57:26.16]: Starting scan #1.
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
DEBUG [2020-09-15 10:57:26.18]: retrying_scan #update_scan_options
DEBUG [2020-09-15 10:57:26.18]:     Setting workspace to FoodTracker2.xcworkspace
DEBUG [2020-09-15 10:57:26.18]:     Setting scheme to FoodTracker2
DEBUG [2020-09-15 10:57:26.19]:     Setting clean to false
DEBUG [2020-09-15 10:57:26.19]:     Setting output_types to html,junit
DEBUG [2020-09-15 10:57:26.19]:     Setting skip_detect_devices to false
DEBUG [2020-09-15 10:57:26.19]:     Setting reset_simulator to false
DEBUG [2020-09-15 10:57:26.19]:     Setting disable_slide_to_type to true
DEBUG [2020-09-15 10:57:26.19]:     Setting reinstall_app to false
DEBUG [2020-09-15 10:57:26.19]:     Setting xctestrun to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun
DEBUG [2020-09-15 10:57:26.19]:     Setting open_report to false
DEBUG [2020-09-15 10:57:26.19]:     Setting output_directory to /Users/estela/Documents/FoodTracker2/fastlane/test_output
DEBUG [2020-09-15 10:57:26.19]:     Setting output_files to report.html,report.junit
DEBUG [2020-09-15 10:57:26.19]:     Setting buildlog_path to ~/Library/Logs/scan
DEBUG [2020-09-15 10:57:26.19]:     Setting include_simulator_logs to false
DEBUG [2020-09-15 10:57:26.19]:     Setting derived_data_path to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh
DEBUG [2020-09-15 10:57:26.19]:     Setting should_zip_build_products to false
DEBUG [2020-09-15 10:57:26.19]:     Setting result_bundle to false
DEBUG [2020-09-15 10:57:26.19]:     Setting use_clang_report_name to false
DEBUG [2020-09-15 10:57:26.19]:     Setting disable_concurrent_testing to true
DEBUG [2020-09-15 10:57:26.19]:     Setting build_for_testing to false
DEBUG [2020-09-15 10:57:26.19]:     Setting xcargs to  -parallel-testing-enabled NO 
DEBUG [2020-09-15 10:57:26.19]:     Setting slack_use_webhook_configured_username_and_icon to false
DEBUG [2020-09-15 10:57:26.19]:     Setting slack_username to fastlane
DEBUG [2020-09-15 10:57:26.19]:     Setting slack_icon_url to https://fastlane.tools/assets/img/fastlane_icon.png
DEBUG [2020-09-15 10:57:26.19]:     Setting skip_slack to false
DEBUG [2020-09-15 10:57:26.19]:     Setting slack_only_on_failure to false
DEBUG [2020-09-15 10:57:26.19]:     Setting destination to ["platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2"]
DEBUG [2020-09-15 10:57:26.19]:     Setting xcodebuild_command to env NSUnbufferedIO=YES xcodebuild
DEBUG [2020-09-15 10:57:26.19]:     Setting fail_build to true
DEBUG [2020-09-15 10:57:26.19]:     Setting skip_build to false

+------------------------------------------------+---------------------------------------------------------------------------------------------------+
|                                                              Summary for scan 2.159.0                                                              |
+------------------------------------------------+---------------------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                          |
| scheme                                         | FoodTracker2                                                                                      |
| clean                                          | false                                                                                             |
| output_types                                   | html,junit                                                                                        |
| skip_detect_devices                            | false                                                                                             |
| force_quit_simulator                           | false                                                                                             |
| reset_simulator                                | false                                                                                             |
| disable_slide_to_type                          | true                                                                                              |
| reinstall_app                                  | false                                                                                             |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Buil  |
|                                                | d/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun                         |
| open_report                                    | false                                                                                             |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_output                                         |
| output_files                                   | report.html,report.junit                                                                          |
| buildlog_path                                  | ~/Library/Logs/scan                                                                               |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh       |
| should_zip_build_products                      | false                                                                                             |
| use_clang_report_name                          | false                                                                                             |
| disable_concurrent_testing                     | true                                                                                              |
| xcargs                                         |  -parallel-testing-enabled NO                                                                     |
| slack_use_webhook_configured_username_and_icon | false                                                                                             |
| slack_username                                 | fastlane                                                                                          |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                               |
| skip_slack                                     | false                                                                                             |
| slack_only_on_failure                          | false                                                                                             |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                                 |
| fail_build                                     | true                                                                                              |
| include_simulator_logs                         | false                                                                                             |
| skip_build                                     | false                                                                                             |
| xcode_path                                     | /Applications/Xcode.app                                                                           |
| result_bundle                                  | false                                                                                             |
| build_for_testing                              | false                                                                                             |
+------------------------------------------------+---------------------------------------------------------------------------------------------------+

DEBUG [2020-09-15 10:57:26.22]: Fetching available simulator devices
INFO [2020-09-15 10:57:26.76]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-15 10:57:26.76]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-15 10:57:26.78]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200915-19212-1hsz81f' 
INFO [2020-09-15 10:57:26.78]: ▸ Loading...
INFO [2020-09-15 10:57:28.79]: ▸ 2020-09-15 10:57:28.796 xcodebuild[19632:327835]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
INFO [2020-09-15 10:57:28.79]: ▸ /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.15_10-57-28-+0200.xcresult/Staging/1_Test/Diagnostics/FoodTracker2CucumberTests-ED7A873F-4FE7-402F-8856-34DB94B64470/FoodTracker2CucumberTests-1265AFDA-5F56-430E-8187-058E768FE6FB/Session-FoodTracker2CucumberTests-2020-09-15_105728-hQTTIe.log
INFO [2020-09-15 10:57:28.79]: ▸ 2020-09-15 10:57:28.797 xcodebuild[19632:326481] [MT] IDETestOperationsObserverDebug: (173DFA28-F500-4933-BA89-D99F7857548A) Beginning test session FoodTracker2CucumberTests-173DFA28-F500-4933-BA89-D99F7857548A at 2020-09-15 10:57:28.797 with Xcode 11E801a on target  {
INFO [2020-09-15 10:57:28.79]: ▸        SimDevice: iPhone 8 (FB3F5937-256F-49C8-8316-B0B346B375D2, iOS 13.7, Booted)
INFO [2020-09-15 10:57:28.79]: ▸ } (13.7 (17H22))
INFO [2020-09-15 10:57:31.08]: ▸ 2020-09-15 10:57:31.080 xcodebuild[19632:326481] [MT] IDETestOperationsObserverDebug: (173DFA28-F500-4933-BA89-D99F7857548A) Finished requesting crash reports. Continuing with testing.
INFO [2020-09-15 10:57:34.76]: ▸ Selected tests
INFO [2020-09-15 10:57:34.76]: ▸ FoodTracker2CucumberTests-Runner.app
INFO [2020-09-15 10:57:34.76]: ▸ CCIFeaturesOfAdd
INFO [2020-09-15 10:57:42.09]: ▸     ✓ addMeal (7.331 seconds)
INFO [2020-09-15 10:57:42.09]: ▸ CCIFeaturesOfDelete
INFO [2020-09-15 10:57:46.51]: ▸     ✓ deleteNewMeal (4.415 seconds)
INFO [2020-09-15 10:57:46.51]: ▸ CCIFeaturesOfDetail
INFO [2020-09-15 10:57:48.41]: ▸     ✓ firstMealDetail (1.905 seconds)
INFO [2020-09-15 10:57:50.32]: ▸     ✓ detailOfEachMealCapreseSaladExample1 (1.905 seconds)
INFO [2020-09-15 10:57:52.25]: ▸     ✓ detailOfEachMealChickenAndPotatoesExample2 (1.929 seconds)
INFO [2020-09-15 10:57:54.15]: ▸     ✓ detailOfEachMealPastaWithMeatballsExample3 (1.904 seconds)
INFO [2020-09-15 10:57:56.06]: ▸     ✓ detailOfEachMealDonnutsExample4 (1.903 seconds)
INFO [2020-09-15 10:57:56.34]: ▸ 2020-09-15 10:57:56.341 xcodebuild[19632:326481] [MT] IDETestOperationsObserverDebug: 27.551 elapsed -- Testing started completed.
INFO [2020-09-15 10:57:56.34]: ▸ 2020-09-15 10:57:56.341 xcodebuild[19632:326481] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
INFO [2020-09-15 10:57:56.34]: ▸ 2020-09-15 10:57:56.341 xcodebuild[19632:326481] [MT] IDETestOperationsObserverDebug: 27.551 sec, +27.551 sec -- end
INFO [2020-09-15 10:57:56.77]: ▸ Test execute Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-15 10:57:56.79]: Batch # incrementing retry count to 1
DEBUG [2020-09-15 10:57:56.79]: Scan passed the tests
DEBUG [2020-09-15 10:57:56.79]: ReportCollator collating
WARN [2020-09-15 10:57:56.80]: Lane Context:
INFO [2020-09-15 10:57:56.80]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"tests"}
INFO [2020-09-15 10:57:56.80]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 41          |
+------+------------------+-------------+

DEBUG [2020-09-15 10:57:56.81]: All plugins are up to date
ERROR [2020-09-15 10:57:56.81]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...
Search query: undefined method `value' for nil

URL: https://api.github.com/search/issues?q=undefined%20method%20%60value%27%20for%20nil+repo:fastlane/fastlane
➡️  [!] undefined method `any?' for nil:NilClass (NoMethodError)
    https://github.com/fastlane/fastlane/issues/17048 [open] 12 💬
    2 weeks ago

➡️  undefined method `get_app_info_localizations' for nil
    https://github.com/fastlane/fastlane/issues/17208 [open] 1 💬
    22 hours ago

➡️  [supply] undefined method `map' for nil:NilClass on "draft" tracks
    https://github.com/fastlane/fastlane/issues/17086 [open] 1 💬
    3 weeks ago

and 279 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60value%27%20for%20nil&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
DEBUG [2020-09-15 10:57:58.12]: All plugins are up to date
Traceback (most recent call last):
    53: from /usr/local/bin/fastlane:23:in `
' 52: from /usr/local/bin/fastlane:23:in `load' 51: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `' 50: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 49: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 48: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 47: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 46: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 45: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 44: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 43: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 42: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 41: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 40: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call' 35: from Fastfile:21:in `block in parsing_binding' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 31: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:166:in `run_tests_through_single_try' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:187:in `retrieve_failed_single_try_tests' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `run' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `new' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:15:in `initialize' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `block in initialize' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `new' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:29:in `initialize' 13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `block in initialize' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `new' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:47:in `initialize' 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `block in initialize' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `new' /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:87:in `initialize': undefined method `value' for nil:NilClass (NoMethodError) 53: from /usr/local/bin/fastlane:23:in `
' 52: from /usr/local/bin/fastlane:23:in `load' 51: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `' 50: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' 49: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' 48: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' 47: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' 46: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' 45: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' 44: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' 43: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' 42: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' 41: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' 40: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' 39: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute' 38: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' 37: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' 36: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call' 35: from Fastfile:21:in `block in parsing_binding' 34: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' 33: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' 32: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' 31: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' 30: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' 29: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action' 28: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action' 27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run' 26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:94:in `run' 25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:166:in `run_tests_through_single_try' 24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:187:in `retrieve_failed_single_try_tests' 23: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `run' 22: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/actions/tests_from_junit.rb:5:in `new' 21: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:15:in `initialize' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `block in initialize' 15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:16:in `new' 14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:29:in `initialize' 13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 11: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `block in initialize' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:30:in `new' 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:47:in `initialize' 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `each' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/xpath.rb:68:in `each' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rexml/element.rb:927:in `block in each' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `block in initialize' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:48:in `new' /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-test_center-3.14.2/lib/fastlane/plugin/test_center/helper/junit_helper.rb:87:in `initialize': [!] undefined method `value' for nil:NilClass (NoMethodError)

My Gemfile.lock file is:

GIT
  remote: https://github.com/lyndsey-ferguson/fastlane-plugin-test_center.git
  revision: 514957af30f8506948a7ba14f35577ce6820c74d
  branch: issue-281-junits-with-no-name
  specs:
    fastlane-plugin-test_center (3.14.2)
      colorize
      json
      plist
      trainer
      xcodeproj
      xctest_list (>= 1.2.1)

GEM
lyndsey-ferguson commented 3 years ago

Are you using bundle exec fastlane <lanename> --verbose to run your lane? If you're using just fastlane <lanename> --verbose it may be using the wrong version of the plugin.

🤞

EstelaDF commented 3 years ago

@lyndsey-ferguson sorry!! I was using directly fastlane <lanename> --verbose. Now I use bundle exec fastlane <lanename> --verbose and it works!!

bundle exec fastlane tests --verbose
[✔] 🚀 
DEBUG [2020-09-16 06:53:51.40]: Checking if there are any plugins that should be loaded...
DEBUG [2020-09-16 06:53:51.41]: Loading 'fastlane-plugin-test_center' plugin
INFO [2020-09-16 06:53:51.41]: gem 'fastlane-plugin-test_center' is already installed
+------------------------+---------+------------------------+
|                       Used plugins                        |
+------------------------+---------+------------------------+
| Plugin                 | Version | Action                 |
+------------------------+---------+------------------------+
| fastlane-plugin-test_  | 3.14.2  | suppressed_tests       |
| center                 |         | suppress_tests         |
|                        |         | tests_from_xcresult    |
|                        |         | suppress_tests_from_j  |
|                        |         | unit                   |
|                        |         | tests_from_xctestrun   |
|                        |         | quit_core_simulator_s  |
|                        |         | ervice                 |
|                        |         | collate_test_result_b  |
|                        |         | undles                 |
|                        |         | tests_from_junit       |
|                        |         | multi_scan             |
|                        |         | test_options_from_tes  |
|                        |         | tplan                  |
|                        |         | collate_html_reports   |
|                        |         | collate_junit_reports  |
|                        |         | collate_json_reports   |
|                        |         | testplans_from_scheme  |
|                        |         | collate_xcresults      |
+------------------------+---------+------------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-16 06:53:52.13]: ------------------------------
INFO [2020-09-16 06:53:52.13]: --- Step: default_platform ---
INFO [2020-09-16 06:53:52.13]: ------------------------------
INFO [2020-09-16 06:53:52.13]: Driving the lane 'tests' 🚀
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-16 06:53:52.14]: ------------------------
INFO [2020-09-16 06:53:52.14]: --- Step: multi_scan ---
INFO [2020-09-16 06:53:52.14]: ------------------------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------

+------------------------+---------------------+
| Summary for multi_scan (test_center v3.14.2) |
+------------------------+---------------------+
| invocation_based_tests | true                |
+------------------------+---------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-16 06:53:52.15]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
DEBUG [2020-09-16 06:53:52.16]: Building the project in preparation for multi_scan testing
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-16 06:53:52.16]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
WARN [2020-09-16 06:53:52.21]: Resolving Swift Package Manager dependencies...
INFO [2020-09-16 06:53:52.21]: $ xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
INFO [2020-09-16 06:53:52.69]: ▸ Command line invocation:
INFO [2020-09-16 06:53:52.69]: ▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
INFO [2020-09-16 06:53:52.94]: ▸ resolved source packages: 
INFO [2020-09-16 06:53:52.95]: $ xcodebuild -showBuildSettings -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
DEBUG [2020-09-16 06:53:53.81]: Fetching available simulator devices
ERROR [2020-09-16 06:53:53.97]: Ignoring 'iPhone', couldn’t find matching simulator
ERROR [2020-09-16 06:53:53.97]: Couldn't find any matching simulators for '["iPhone"]' - falling back to default simulator
INFO [2020-09-16 06:53:53.97]: Found simulator "iPhone 8 (13.7)"
DEBUG [2020-09-16 06:53:53.97]: Detected derived data path '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh'

+------------------------------------------------+-----------------------------------------------------------------------------------------+
|                                                         Summary for scan 2.159.0                                                         |
+------------------------------------------------+-----------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                |
| scheme                                         | FoodTracker2                                                                            |
| device                                         | iPhone                                                                                  |
| clean                                          | true                                                                                    |
| output_types                                   | html,junit                                                                              |
| skip_detect_devices                            | false                                                                                   |
| force_quit_simulator                           | false                                                                                   |
| reset_simulator                                | false                                                                                   |
| disable_slide_to_type                          | true                                                                                    |
| reinstall_app                                  | false                                                                                   |
| open_report                                    | false                                                                                   |
| output_directory                               | ./fastlane/test_output                                                                  |
| buildlog_path                                  | ~/Library/Logs/scan                                                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh                                                                                   |
| should_zip_build_products                      | false                                                                                   |
| use_clang_report_name                          | false                                                                                   |
| disable_concurrent_testing                     | false                                                                                   |
| build_for_testing                              | true                                                                                    |
| slack_use_webhook_configured_username_and_icon | false                                                                                   |
| slack_username                                 | fastlane                                                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                     |
| skip_slack                                     | false                                                                                   |
| slack_only_on_failure                          | false                                                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                       |
| fail_build                                     | true                                                                                    |
| include_simulator_logs                         | false                                                                                   |
| skip_build                                     | false                                                                                   |
| xcode_path                                     | /Applications/Xcode.app                                                                 |
+------------------------------------------------+-----------------------------------------------------------------------------------------+

DEBUG [2020-09-16 06:53:53.98]: Before building, removing pre-existing xctestrun files: ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"]
DEBUG [2020-09-16 06:53:53.98]: Fetching available simulator devices
INFO [2020-09-16 06:53:54.13]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-16 06:53:54.13]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-16 06:53:54.14]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace FoodTracker2.xcworkspace -scheme FoodTracker2 -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' clean build-for-testing | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200916-58404-eq3fxq' 
INFO [2020-09-16 06:53:54.14]: ▸ Loading...
INFO [2020-09-16 06:53:55.49]: ▸ Cleaning FoodTracker2/FoodTracker2 [Debug]
(...)
INFO [2020-09-16 06:54:01.91]: Running Tests: ▸ Touching FoodTracker2CucumberTests.xctest
INFO [2020-09-16 06:54:01.91]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest
INFO [2020-09-16 06:54:02.05]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app
INFO [2020-09-16 06:54:02.21]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-16 06:54:02.23]: After building, found xctestrun files ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"] (choosing 1st)
DEBUG [2020-09-16 06:54:02.23]: Removing report files generated by the build
DEBUG [2020-09-16 06:54:02.23]:   ./fastlane/test_output/report.html
DEBUG [2020-09-16 06:54:02.23]:   ./fastlane/test_output/report.junit
DEBUG [2020-09-16 06:54:02.23]: > setup_logcollection
DEBUG [2020-09-16 06:54:02.23]: < done in TestCenter::Helper::MultiScanManager.initialize
DEBUG [2020-09-16 06:54:02.23]: Running invocation tests
DEBUG [2020-09-16 06:54:02.23]: Deleting xcresults:
DEBUG [2020-09-16 06:54:02.23]:   /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.16_06-51-19-+0200.xcresult
DEBUG [2020-09-16 06:54:02.25]: Restarting Simulator FB3F5937-256F-49C8-8316-B0B346B375D2
INFO [2020-09-16 06:54:08.78]: Starting scan #1.
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
DEBUG [2020-09-16 06:54:08.78]: retrying_scan #update_scan_options
DEBUG [2020-09-16 06:54:08.78]:     Setting workspace to FoodTracker2.xcworkspace
DEBUG [2020-09-16 06:54:08.78]:     Setting scheme to FoodTracker2
DEBUG [2020-09-16 06:54:08.78]:     Setting clean to false
DEBUG [2020-09-16 06:54:08.78]:     Setting output_types to html,junit
DEBUG [2020-09-16 06:54:08.78]:     Setting skip_detect_devices to false
DEBUG [2020-09-16 06:54:08.78]:     Setting reset_simulator to false
DEBUG [2020-09-16 06:54:08.78]:     Setting disable_slide_to_type to true
DEBUG [2020-09-16 06:54:08.78]:     Setting reinstall_app to false
DEBUG [2020-09-16 06:54:08.78]:     Setting xctestrun to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun
DEBUG [2020-09-16 06:54:08.78]:     Setting open_report to false
DEBUG [2020-09-16 06:54:08.78]:     Setting output_directory to /Users/estela/Documents/FoodTracker2/fastlane/test_output
DEBUG [2020-09-16 06:54:08.78]:     Setting output_files to report.html,report.junit
DEBUG [2020-09-16 06:54:08.78]:     Setting buildlog_path to ~/Library/Logs/scan
DEBUG [2020-09-16 06:54:08.78]:     Setting include_simulator_logs to false
DEBUG [2020-09-16 06:54:08.78]:     Setting derived_data_path to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh
DEBUG [2020-09-16 06:54:08.78]:     Setting should_zip_build_products to false
DEBUG [2020-09-16 06:54:08.78]:     Setting result_bundle to false
DEBUG [2020-09-16 06:54:08.79]:     Setting use_clang_report_name to false
DEBUG [2020-09-16 06:54:08.79]:     Setting disable_concurrent_testing to true
DEBUG [2020-09-16 06:54:08.79]:     Setting build_for_testing to false
DEBUG [2020-09-16 06:54:08.79]:     Setting xcargs to  -parallel-testing-enabled NO 
DEBUG [2020-09-16 06:54:08.79]:     Setting slack_use_webhook_configured_username_and_icon to false
DEBUG [2020-09-16 06:54:08.79]:     Setting slack_username to fastlane
DEBUG [2020-09-16 06:54:08.79]:     Setting slack_icon_url to https://fastlane.tools/assets/img/fastlane_icon.png
DEBUG [2020-09-16 06:54:08.79]:     Setting skip_slack to false
DEBUG [2020-09-16 06:54:08.79]:     Setting slack_only_on_failure to false
DEBUG [2020-09-16 06:54:08.79]:     Setting destination to ["platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2"]
DEBUG [2020-09-16 06:54:08.79]:     Setting xcodebuild_command to env NSUnbufferedIO=YES xcodebuild
DEBUG [2020-09-16 06:54:08.79]:     Setting fail_build to true
DEBUG [2020-09-16 06:54:08.79]:     Setting skip_build to false

+------------------------------------------------+-----------------------------------------------------------------------------------------+
|                                                         Summary for scan 2.159.0                                                         |
+------------------------------------------------+-----------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                |
| scheme                                         | FoodTracker2                                                                            |
| clean                                          | false                                                                                   |
| output_types                                   | html,junit                                                                              |
| skip_detect_devices                            | false                                                                                   |
| force_quit_simulator                           | false                                                                                   |
| reset_simulator                                | false                                                                                   |
| disable_slide_to_type                          | true                                                                                    |
| reinstall_app                                  | false                                                                                   |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun     |
| open_report                                    | false                                                                                   |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_output                               |
| output_files                                   | report.html,report.junit                                                                |
| buildlog_path                                  | ~/Library/Logs/scan                                                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh                                                                                   |
| should_zip_build_products                      | false                                                                                   |
| use_clang_report_name                          | false                                                                                   |
| disable_concurrent_testing                     | true                                                                                    |
| xcargs                                         |  -parallel-testing-enabled NO                                                           |
| slack_use_webhook_configured_username_and_icon | false                                                                                   |
| slack_username                                 | fastlane                                                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                     |
| skip_slack                                     | false                                                                                   |
| slack_only_on_failure                          | false                                                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                       |
| fail_build                                     | true                                                                                    |
| include_simulator_logs                         | false                                                                                   |
| skip_build                                     | false                                                                                   |
| xcode_path                                     | /Applications/Xcode.app                                                                 |
| result_bundle                                  | false                                                                                   |
| build_for_testing                              | false                                                                                   |
+------------------------------------------------+-----------------------------------------------------------------------------------------+

DEBUG [2020-09-16 06:54:08.81]: Fetching available simulator devices
INFO [2020-09-16 06:54:09.55]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-16 06:54:09.55]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-16 06:54:09.59]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200916-58404-2wbod4' 
INFO [2020-09-16 06:54:09.59]: ▸ Loading...
INFO [2020-09-16 06:54:12.42]: ▸ 2020-09-16 06:54:12.423 xcodebuild[58902:764616]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
INFO [2020-09-16 06:54:12.42]: ▸ /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.16_06-54-12-+0200.xcresult/Staging/1_Test/Diagnostics/FoodTracker2CucumberTests-0394ADD6-E52C-4FDE-946F-89073E8DD0C0/FoodTracker2CucumberTests-CCFCAF9D-64D9-42FD-90F8-1AE10B49EB6E/Session-FoodTracker2CucumberTests-2020-09-16_065412-Ubjbow.log
INFO [2020-09-16 06:54:12.42]: ▸ 2020-09-16 06:54:12.424 xcodebuild[58902:763502] [MT] IDETestOperationsObserverDebug: (8E6AE879-8EB9-42E6-AB3F-4323B55558F6) Beginning test session FoodTracker2CucumberTests-8E6AE879-8EB9-42E6-AB3F-4323B55558F6 at 2020-09-16 06:54:12.424 with Xcode 11E801a on target  {
INFO [2020-09-16 06:54:12.42]: ▸        SimDevice: iPhone 8 (FB3F5937-256F-49C8-8316-B0B346B375D2, iOS 13.7, Booted)
INFO [2020-09-16 06:54:12.42]: ▸ } (13.7 (17H22))
INFO [2020-09-16 06:54:13.21]: ▸ 2020-09-16 06:54:13.209 xcodebuild[58902:763502] [MT] IDETestOperationsObserverDebug: (8E6AE879-8EB9-42E6-AB3F-4323B55558F6) Finished requesting crash reports. Continuing with testing.
INFO [2020-09-16 06:54:15.32]: ▸ Selected tests
INFO [2020-09-16 06:54:15.32]: ▸ FoodTracker2CucumberTests-Runner.app
INFO [2020-09-16 06:54:15.32]: ▸ CCIFeaturesOfAdd
INFO [2020-09-16 06:54:21.81]: ▸     ✓ addMeal (6.492 seconds)
INFO [2020-09-16 06:54:21.82]: ▸ CCIFeaturesOfDelete
INFO [2020-09-16 06:54:26.23]: ▸     ✓ deleteNewMeal (4.411 seconds)
INFO [2020-09-16 06:54:26.23]: ▸ CCIFeaturesOfDetail
INFO [2020-09-16 06:54:28.12]: ▸     ✓ firstMealDetail (1.898 seconds)
INFO [2020-09-16 06:54:30.03]: ▸     ✓ detailOfEachMealCapreseSaladExample1 (1.907 seconds)
INFO [2020-09-16 06:54:31.94]: ▸     ✓ detailOfEachMealChickenAndPotatoesExample2 (1.908 seconds)
INFO [2020-09-16 06:54:33.87]: ▸     ✓ detailOfEachMealPastaWithMeatballsExample3 (1.927 seconds)
INFO [2020-09-16 06:54:35.79]: ▸     ✓ detailOfEachMealDonnutsExample4 (1.923 seconds)
INFO [2020-09-16 06:54:36.06]: ▸ 2020-09-16 06:54:36.066 xcodebuild[58902:763502] [MT] IDETestOperationsObserverDebug: 23.649 elapsed -- Testing started completed.
INFO [2020-09-16 06:54:36.06]: ▸ 2020-09-16 06:54:36.066 xcodebuild[58902:763502] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
INFO [2020-09-16 06:54:36.06]: ▸ 2020-09-16 06:54:36.066 xcodebuild[58902:763502] [MT] IDETestOperationsObserverDebug: 23.649 sec, +23.649 sec -- end
INFO [2020-09-16 06:54:36.50]: ▸ Test execute Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-16 06:54:36.54]: Batch # incrementing retry count to 1
DEBUG [2020-09-16 06:54:36.54]: Scan passed the tests
DEBUG [2020-09-16 06:54:36.54]: ReportCollator collating
WARN [2020-09-16 06:54:36.54]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.54]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.54]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.54]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.54]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.54]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.54]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.55]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.55]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.55]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.55]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.55]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.55]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}
WARN [2020-09-16 06:54:36.55]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='0'}

+-------------------+-----------------------------------------------------------------------------+
|                                       multi_scan results                                        |
+-------------------+-----------------------------------------------------------------------------+
| result            | true                                                                        |
| total_tests       | 7                                                                           |
| passing_testcount | 7                                                                           |
| failed_testcount  | 0                                                                           |
| failed_tests      | []                                                                          |
| total_retry_count | 1                                                                           |
| report_files      | ["/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit",  |
|                   | "/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html"]    |
+-------------------+-----------------------------------------------------------------------------+

INFO [2020-09-16 06:54:36.55]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | multi_scan       | 44          |
+------+------------------+-------------+

+-------------+--------------+----------------+
|          Plugin updates available           |
+-------------+--------------+----------------+
| Plugin      | Your Version | Latest Version |
+-------------+--------------+----------------+
| test_center | 3.14.2       | 3.14.3         |
+-------------+--------------+----------------+
INFO [2020-09-16 06:54:36.55]: To update all plugins, just run
INFO [2020-09-16 06:54:36.55]: $ bundle exec fastlane update_plugins

INFO [2020-09-16 06:54:36.55]: fastlane.tools finished successfully 🎉

You can see that I need update the plugin but I run bundle exec fastlane update_plugins and I see:

estela@Estelas-MBP FoodTracker2 % sudo bundle exec fastlane update_plugins
[✔] 🚀 
+-----------------------------+---------+----------------------------------------------------------+
|                                           Used plugins                                           |
+-----------------------------+---------+----------------------------------------------------------+
| Plugin                      | Version | Action                                                   |
+-----------------------------+---------+----------------------------------------------------------+
| fastlane-plugin-test_center | 3.14.2  | suppressed_tests suppress_tests tests_from_xcresult      |
|                             |         | suppress_tests_from_junit tests_from_xctestrun           |
|                             |         | quit_core_simulator_service collate_test_result_bundles  |
|                             |         | tests_from_junit multi_scan test_options_from_testplan   |
|                             |         | collate_html_reports collate_junit_reports               |
|                             |         | collate_json_reports testplans_from_scheme               |
|                             |         | collate_xcresults                                        |
+-----------------------------+---------+----------------------------------------------------------+

Updating plugin dependencies...
Successfully updated plugins

So, I don't know why I can't update the plugin.

lyndsey-ferguson commented 3 years ago

@EstelaDF great news! Yes, use bundle exec to use the Gems associated with the Gemfile. I think you cannot update as you've specifically tied the plugin to the version that you and I are debugging. That isn't a problem.

So, the first pass succeeded. Can you update the :try_count to 2 and make one of the tests fail (assert fails or something) to make sure that it retries properly?

EstelaDF commented 3 years ago

@lyndsey-ferguson ok, I put try_count: 2 and I made one test fails.

My lane, now is like this:

lane :tests do
    multi_scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      #testplan: "FoodTracker2",
      invocation_based_tests: true,
      device: "iPhone",
      try_count: 2,
      clean: true
    )
  end

And my output is:

[✔] 🚀 
DEBUG [2020-09-17 08:23:17.43]: Checking if there are any plugins that should be loaded...
DEBUG [2020-09-17 08:23:17.43]: Loading 'fastlane-plugin-test_center' plugin
INFO [2020-09-17 08:23:17.43]: gem 'fastlane-plugin-test_center' is already installed
+-----------------------------+---------+----------------------------------------------------------+
|                                           Used plugins                                           |
+-----------------------------+---------+----------------------------------------------------------+
| Plugin                      | Version | Action                                                   |
+-----------------------------+---------+----------------------------------------------------------+
| fastlane-plugin-test_center | 3.14.2  | suppressed_tests suppress_tests tests_from_xcresult      |
|                             |         | suppress_tests_from_junit tests_from_xctestrun           |
|                             |         | quit_core_simulator_service collate_test_result_bundles  |
|                             |         | tests_from_junit multi_scan test_options_from_testplan   |
|                             |         | collate_html_reports collate_junit_reports               |
|                             |         | collate_json_reports testplans_from_scheme               |
|                             |         | collate_xcresults                                        |
+-----------------------------+---------+----------------------------------------------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-17 08:23:19.30]: ------------------------------
INFO [2020-09-17 08:23:19.30]: --- Step: default_platform ---
INFO [2020-09-17 08:23:19.30]: ------------------------------
INFO [2020-09-17 08:23:19.30]: Driving the lane 'tests' 🚀
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-17 08:23:19.31]: ------------------------
INFO [2020-09-17 08:23:19.31]: --- Step: multi_scan ---
INFO [2020-09-17 08:23:19.31]: ------------------------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------

+------------------------+---------------------+
| Summary for multi_scan (test_center v3.14.2) |
+------------------------+---------------------+
| invocation_based_tests | true                |
| try_count              | 2                   |
+------------------------+---------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-17 08:23:19.34]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
DEBUG [2020-09-17 08:23:19.34]: Building the project in preparation for multi_scan testing
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-17 08:23:19.34]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
WARN [2020-09-17 08:23:19.37]: Resolving Swift Package Manager dependencies...
INFO [2020-09-17 08:23:19.37]: $ xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
INFO [2020-09-17 08:23:20.02]: ▸ Command line invocation:
INFO [2020-09-17 08:23:20.02]: ▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
INFO [2020-09-17 08:23:20.32]: ▸ resolved source packages: 
INFO [2020-09-17 08:23:20.32]: $ xcodebuild -showBuildSettings -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
DEBUG [2020-09-17 08:23:21.30]: Fetching available simulator devices
ERROR [2020-09-17 08:23:21.45]: Ignoring 'iPhone', couldn’t find matching simulator
ERROR [2020-09-17 08:23:21.45]: Couldn't find any matching simulators for '["iPhone"]' - falling back to default simulator
INFO [2020-09-17 08:23:21.46]: Found simulator "iPhone 8 (13.7)"
DEBUG [2020-09-17 08:23:21.46]: Detected derived data path '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh'

+------------------------------------------------+-----------------------------------------------------------------------------------------+
|                                                         Summary for scan 2.159.0                                                         |
+------------------------------------------------+-----------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                |
| scheme                                         | FoodTracker2                                                                            |
| device                                         | iPhone                                                                                  |
| clean                                          | true                                                                                    |
| output_types                                   | html,junit                                                                              |
| skip_detect_devices                            | false                                                                                   |
| force_quit_simulator                           | false                                                                                   |
| reset_simulator                                | false                                                                                   |
| disable_slide_to_type                          | true                                                                                    |
| reinstall_app                                  | false                                                                                   |
| open_report                                    | false                                                                                   |
| output_directory                               | ./fastlane/test_output                                                                  |
| buildlog_path                                  | ~/Library/Logs/scan                                                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh                                                                                   |
| should_zip_build_products                      | false                                                                                   |
| use_clang_report_name                          | false                                                                                   |
| disable_concurrent_testing                     | false                                                                                   |
| build_for_testing                              | true                                                                                    |
| slack_use_webhook_configured_username_and_icon | false                                                                                   |
| slack_username                                 | fastlane                                                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                     |
| skip_slack                                     | false                                                                                   |
| slack_only_on_failure                          | false                                                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                       |
| fail_build                                     | true                                                                                    |
| include_simulator_logs                         | false                                                                                   |
| skip_build                                     | false                                                                                   |
| xcode_path                                     | /Applications/Xcode.app                                                                 |
+------------------------------------------------+-----------------------------------------------------------------------------------------+

DEBUG [2020-09-17 08:23:21.49]: Before building, removing pre-existing xctestrun files: ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"]
DEBUG [2020-09-17 08:23:21.49]: Fetching available simulator devices
INFO [2020-09-17 08:23:21.64]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-17 08:23:21.64]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-17 08:23:21.65]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace FoodTracker2.xcworkspace -scheme FoodTracker2 -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' clean build-for-testing | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200917-6484-16zmo6v' 
INFO [2020-09-17 08:23:21.65]: ▸ Loading...
(...)
INFO [2020-09-17 08:23:27.73]: ▸ Copying FoodTracker2CucumberTests/Features
INFO [2020-09-17 08:23:27.73]: ▸ Running script '[CP] Embed Pods Frameworks'
INFO [2020-09-17 08:23:28.26]: Running Tests: ▸ Touching FoodTracker2CucumberTests.xctest
INFO [2020-09-17 08:23:28.27]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app/PlugIns/FoodTracker2CucumberTests.xctest
INFO [2020-09-17 08:23:28.40]: ▸ Signing /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/Debug-iphonesimulator/FoodTracker2CucumberTests-Runner.app
INFO [2020-09-17 08:23:28.56]: ▸ Test build Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-17 08:23:28.58]: After building, found xctestrun files ["/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun"] (choosing 1st)
DEBUG [2020-09-17 08:23:28.58]: Removing report files generated by the build
DEBUG [2020-09-17 08:23:28.58]:   ./fastlane/test_output/report.html
DEBUG [2020-09-17 08:23:28.58]:   ./fastlane/test_output/report.junit
DEBUG [2020-09-17 08:23:28.58]: > setup_logcollection
DEBUG [2020-09-17 08:23:28.58]: < done in TestCenter::Helper::MultiScanManager.initialize
DEBUG [2020-09-17 08:23:28.58]: Running invocation tests
DEBUG [2020-09-17 08:23:28.58]: Deleting xcresults:
DEBUG [2020-09-17 08:23:28.58]: Restarting Simulator FB3F5937-256F-49C8-8316-B0B346B375D2
INFO [2020-09-17 08:23:35.12]: Starting scan #1.
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
DEBUG [2020-09-17 08:23:35.12]: retrying_scan #update_scan_options
DEBUG [2020-09-17 08:23:35.12]:     Setting workspace to FoodTracker2.xcworkspace
DEBUG [2020-09-17 08:23:35.12]:     Setting scheme to FoodTracker2
DEBUG [2020-09-17 08:23:35.12]:     Setting clean to false
DEBUG [2020-09-17 08:23:35.12]:     Setting output_types to html,junit
DEBUG [2020-09-17 08:23:35.12]:     Setting skip_detect_devices to false
DEBUG [2020-09-17 08:23:35.12]:     Setting reset_simulator to false
DEBUG [2020-09-17 08:23:35.12]:     Setting disable_slide_to_type to true
DEBUG [2020-09-17 08:23:35.12]:     Setting reinstall_app to false
DEBUG [2020-09-17 08:23:35.12]:     Setting xctestrun to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun
DEBUG [2020-09-17 08:23:35.12]:     Setting open_report to false
DEBUG [2020-09-17 08:23:35.12]:     Setting output_directory to /Users/estela/Documents/FoodTracker2/fastlane/test_output
DEBUG [2020-09-17 08:23:35.12]:     Setting output_files to report.html,report.junit
DEBUG [2020-09-17 08:23:35.12]:     Setting buildlog_path to ~/Library/Logs/scan
DEBUG [2020-09-17 08:23:35.12]:     Setting include_simulator_logs to false
DEBUG [2020-09-17 08:23:35.12]:     Setting derived_data_path to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh
DEBUG [2020-09-17 08:23:35.12]:     Setting should_zip_build_products to false
DEBUG [2020-09-17 08:23:35.12]:     Setting result_bundle to false
DEBUG [2020-09-17 08:23:35.12]:     Setting use_clang_report_name to false
DEBUG [2020-09-17 08:23:35.12]:     Setting disable_concurrent_testing to true
DEBUG [2020-09-17 08:23:35.12]:     Setting build_for_testing to false
DEBUG [2020-09-17 08:23:35.12]:     Setting xcargs to  -parallel-testing-enabled NO 
DEBUG [2020-09-17 08:23:35.12]:     Setting slack_use_webhook_configured_username_and_icon to false
DEBUG [2020-09-17 08:23:35.12]:     Setting slack_username to fastlane
DEBUG [2020-09-17 08:23:35.12]:     Setting slack_icon_url to https://fastlane.tools/assets/img/fastlane_icon.png
DEBUG [2020-09-17 08:23:35.12]:     Setting skip_slack to false
DEBUG [2020-09-17 08:23:35.12]:     Setting slack_only_on_failure to false
DEBUG [2020-09-17 08:23:35.12]:     Setting destination to ["platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2"]
DEBUG [2020-09-17 08:23:35.12]:     Setting xcodebuild_command to env NSUnbufferedIO=YES xcodebuild
DEBUG [2020-09-17 08:23:35.12]:     Setting fail_build to true
DEBUG [2020-09-17 08:23:35.12]:     Setting skip_build to false

+------------------------------------------------+-----------------------------------------------------------------------------------------+
|                                                         Summary for scan 2.159.0                                                         |
+------------------------------------------------+-----------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                |
| scheme                                         | FoodTracker2                                                                            |
| clean                                          | false                                                                                   |
| output_types                                   | html,junit                                                                              |
| skip_detect_devices                            | false                                                                                   |
| force_quit_simulator                           | false                                                                                   |
| reset_simulator                                | false                                                                                   |
| disable_slide_to_type                          | true                                                                                    |
| reinstall_app                                  | false                                                                                   |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun     |
| open_report                                    | false                                                                                   |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_output                               |
| output_files                                   | report.html,report.junit                                                                |
| buildlog_path                                  | ~/Library/Logs/scan                                                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh                                                                                   |
| should_zip_build_products                      | false                                                                                   |
| use_clang_report_name                          | false                                                                                   |
| disable_concurrent_testing                     | true                                                                                    |
| xcargs                                         |  -parallel-testing-enabled NO                                                           |
| slack_use_webhook_configured_username_and_icon | false                                                                                   |
| slack_username                                 | fastlane                                                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                     |
| skip_slack                                     | false                                                                                   |
| slack_only_on_failure                          | false                                                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                       |
| fail_build                                     | true                                                                                    |
| include_simulator_logs                         | false                                                                                   |
| skip_build                                     | false                                                                                   |
| xcode_path                                     | /Applications/Xcode.app                                                                 |
| result_bundle                                  | false                                                                                   |
| build_for_testing                              | false                                                                                   |
+------------------------------------------------+-----------------------------------------------------------------------------------------+

DEBUG [2020-09-17 08:23:35.14]: Fetching available simulator devices
INFO [2020-09-17 08:23:35.63]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-17 08:23:35.63]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-17 08:23:35.65]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200917-6484-3x2z1' 
INFO [2020-09-17 08:23:35.65]: ▸ Loading...
INFO [2020-09-17 08:23:39.11]: ▸ 2020-09-17 08:23:39.110 xcodebuild[7033:109209]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
INFO [2020-09-17 08:23:39.11]: ▸ /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.17_08-23-39-+0200.xcresult/Staging/1_Test/Diagnostics/FoodTracker2CucumberTests-E44731D4-5E4A-4AA5-B8EF-8CE21A228573/FoodTracker2CucumberTests-99EE53B7-1666-4E23-A75B-F5C2E23C82E5/Session-FoodTracker2CucumberTests-2020-09-17_082339-s6qa1T.log
INFO [2020-09-17 08:23:39.11]: ▸ 2020-09-17 08:23:39.111 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: (0A821489-7CBD-46EF-A0A1-A6479353CFBF) Beginning test session FoodTracker2CucumberTests-0A821489-7CBD-46EF-A0A1-A6479353CFBF at 2020-09-17 08:23:39.111 with Xcode 11E801a on target  {
INFO [2020-09-17 08:23:39.11]: ▸        SimDevice: iPhone 8 (FB3F5937-256F-49C8-8316-B0B346B375D2, iOS 13.7, Booted)
INFO [2020-09-17 08:23:39.11]: ▸ } (13.7 (17H22))
INFO [2020-09-17 08:23:41.91]: ▸ 2020-09-17 08:23:41.914 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: (0A821489-7CBD-46EF-A0A1-A6479353CFBF) Finished requesting crash reports. Continuing with testing.
INFO [2020-09-17 08:23:43.39]: ▸ Selected tests
INFO [2020-09-17 08:23:43.39]: ▸ FoodTracker2CucumberTests-Runner.app
INFO [2020-09-17 08:23:43.39]: ▸ CCIFeaturesOfAdd
INFO [2020-09-17 08:23:49.81]: ▸     ✗ addMeal, XCTAssertTrue failed
INFO [2020-09-17 08:23:50.03]: ▸ CCIFeaturesOfDelete
INFO [2020-09-17 08:23:54.47]: ▸     ✓ deleteNewMeal (4.436 seconds)
INFO [2020-09-17 08:23:54.47]: ▸ CCIFeaturesOfDetail
INFO [2020-09-17 08:23:56.37]: ▸     ✓ firstMealDetail (1.906 seconds)
INFO [2020-09-17 08:23:58.29]: ▸     ✓ detailOfEachMealCapreseSaladExample1 (1.917 seconds)
INFO [2020-09-17 08:24:00.20]: ▸     ✓ detailOfEachMealChickenAndPotatoesExample2 (1.910 seconds)
INFO [2020-09-17 08:24:02.11]: ▸     ✓ detailOfEachMealPastaWithMeatballsExample3 (1.911 seconds)
INFO [2020-09-17 08:24:04.04]: ▸     ✓ detailOfEachMealDonnutsExample4 (1.932 seconds)
INFO [2020-09-17 08:24:10.96]: ▸ 2020-09-17 08:24:10.964 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: 31.868 elapsed -- Testing started completed.
INFO [2020-09-17 08:24:10.96]: ▸ 2020-09-17 08:24:10.964 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
INFO [2020-09-17 08:24:10.96]: ▸ 2020-09-17 08:24:10.964 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: 31.868 sec, +31.868 sec -- end
INFO [2020-09-17 08:24:16.55]: ▸ Failing tests:
INFO [2020-09-17 08:24:16.55]: ▸    FoodTracker2CucumberTests:
INFO [2020-09-17 08:24:16.55]: ▸        -[CCIFeaturesOfAdd addMeal]
INFO [2020-09-17 08:24:16.55]: ▸ ** TEST EXECUTE FAILED **
2020-09-17 08:23:39.110 xcodebuild[7033:109209]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.17_08-23-39-+0200.xcresult/Staging/1_Test/Diagnostics/FoodTracker2CucumberTests-E44731D4-5E4A-4AA5-B8EF-8CE21A228573/FoodTracker2CucumberTests-99EE53B7-1666-4E23-A75B-F5C2E23C82E5/Session-FoodTracker2CucumberTests-2020-09-17_082339-s6qa1T.log
2020-09-17 08:23:39.111 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: (0A821489-7CBD-46EF-A0A1-A6479353CFBF) Beginning test session FoodTracker2CucumberTests-0A821489-7CBD-46EF-A0A1-A6479353CFBF at 2020-09-17 08:23:39.111 with Xcode 11E801a on target  {
        SimDevice: iPhone 8 (FB3F5937-256F-49C8-8316-B0B346B375D2, iOS 13.7, Booted)
} (13.7 (17H22))
2020-09-17 08:23:41.914 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: (0A821489-7CBD-46EF-A0A1-A6479353CFBF) Finished requesting crash reports. Continuing with testing.
Selected tests
FoodTracker2CucumberTests-Runner.app
CCIFeaturesOfAdd
    ✗ addMeal, XCTAssertTrue failed
CCIFeaturesOfDelete
    ✓ deleteNewMeal (4.436 seconds)
CCIFeaturesOfDetail
    ✓ firstMealDetail (1.906 seconds)
    ✓ detailOfEachMealCapreseSaladExample1 (1.917 seconds)
    ✓ detailOfEachMealChickenAndPotatoesExample2 (1.910 seconds)
    ✓ detailOfEachMealPastaWithMeatballsExample3 (1.911 seconds)
    ✓ detailOfEachMealDonnutsExample4 (1.932 seconds)
2020-09-17 08:24:10.964 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: 31.868 elapsed -- Testing started completed.
2020-09-17 08:24:10.964 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2020-09-17 08:24:10.964 xcodebuild[7033:107087] [MT] IDETestOperationsObserverDebug: 31.868 sec, +31.868 sec -- end
Failing tests:
    FoodTracker2CucumberTests:
        -[CCIFeaturesOfAdd addMeal]

** TEST EXECUTE FAILED **
ERROR [2020-09-17 08:24:16.58]: Exit status: 65
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 7 |
| Number of failures | 1 |
+--------------------+---+

DEBUG [2020-09-17 08:24:16.58]: Batch # incrementing retry count to 1
DEBUG [2020-09-17 08:24:16.58]: Scan found failing tests
WARN [2020-09-17 08:24:16.59]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.59]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.59]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.59]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.59]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.59]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.59]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
DEBUG [2020-09-17 08:24:16.59]: ReportCollator collating
WARN [2020-09-17 08:24:16.61]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.61]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.61]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.61]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.61]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.61]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
WARN [2020-09-17 08:24:16.61]: About to parse testsuites with attributes {"tests"=>tests='7', "failures"=>failures='1'}
INFO [2020-09-17 08:24:16.61]: Starting test run 1
DEBUG [2020-09-17 08:24:16.61]: Deleting xcresults:
DEBUG [2020-09-17 08:24:16.61]:   /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.17_08-23-39-+0200.xcresult
DEBUG [2020-09-17 08:24:16.84]: Restarting Simulator FB3F5937-256F-49C8-8316-B0B346B375D2
INFO [2020-09-17 08:24:23.38]: Starting scan #1 with 1 tests.
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
DEBUG [2020-09-17 08:24:23.38]: retrying_scan #update_scan_options
DEBUG [2020-09-17 08:24:23.38]:     Setting workspace to FoodTracker2.xcworkspace
DEBUG [2020-09-17 08:24:23.38]:     Setting scheme to FoodTracker2
DEBUG [2020-09-17 08:24:23.38]:     Setting clean to false
DEBUG [2020-09-17 08:24:23.38]:     Setting output_types to html,junit
DEBUG [2020-09-17 08:24:23.38]:     Setting skip_detect_devices to false
DEBUG [2020-09-17 08:24:23.38]:     Setting reset_simulator to false
DEBUG [2020-09-17 08:24:23.38]:     Setting disable_slide_to_type to true
DEBUG [2020-09-17 08:24:23.38]:     Setting reinstall_app to false
DEBUG [2020-09-17 08:24:23.38]:     Setting only_testing to ["CCIFeaturesOfAdd/addMeal"]
DEBUG [2020-09-17 08:24:23.38]:     Setting xctestrun to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun
DEBUG [2020-09-17 08:24:23.38]:     Setting open_report to false
DEBUG [2020-09-17 08:24:23.38]:     Setting output_directory to /Users/estela/Documents/FoodTracker2/fastlane/test_output
DEBUG [2020-09-17 08:24:23.38]:     Setting output_files to report.html,report.junit
DEBUG [2020-09-17 08:24:23.38]:     Setting buildlog_path to ~/Library/Logs/scan
DEBUG [2020-09-17 08:24:23.38]:     Setting include_simulator_logs to false
DEBUG [2020-09-17 08:24:23.38]:     Setting derived_data_path to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh
DEBUG [2020-09-17 08:24:23.38]:     Setting should_zip_build_products to false
DEBUG [2020-09-17 08:24:23.38]:     Setting result_bundle to false
DEBUG [2020-09-17 08:24:23.38]:     Setting use_clang_report_name to false
DEBUG [2020-09-17 08:24:23.38]:     Setting disable_concurrent_testing to true
DEBUG [2020-09-17 08:24:23.38]:     Setting build_for_testing to false
DEBUG [2020-09-17 08:24:23.38]:     Setting xcargs to  -parallel-testing-enabled NO 
DEBUG [2020-09-17 08:24:23.38]:     Setting slack_use_webhook_configured_username_and_icon to false
DEBUG [2020-09-17 08:24:23.38]:     Setting slack_username to fastlane
DEBUG [2020-09-17 08:24:23.38]:     Setting slack_icon_url to https://fastlane.tools/assets/img/fastlane_icon.png
DEBUG [2020-09-17 08:24:23.38]:     Setting skip_slack to false
DEBUG [2020-09-17 08:24:23.38]:     Setting slack_only_on_failure to false
DEBUG [2020-09-17 08:24:23.38]:     Setting destination to ["platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2"]
DEBUG [2020-09-17 08:24:23.38]:     Setting xcodebuild_command to env NSUnbufferedIO=YES xcodebuild
DEBUG [2020-09-17 08:24:23.38]:     Setting fail_build to true
DEBUG [2020-09-17 08:24:23.38]:     Setting skip_build to false

+------------------------------------------------+-----------------------------------------------------------------------------------------+
|                                                         Summary for scan 2.159.0                                                         |
+------------------------------------------------+-----------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                |
| scheme                                         | FoodTracker2                                                                            |
| clean                                          | false                                                                                   |
| output_types                                   | html,junit                                                                              |
| skip_detect_devices                            | false                                                                                   |
| force_quit_simulator                           | false                                                                                   |
| reset_simulator                                | false                                                                                   |
| disable_slide_to_type                          | true                                                                                    |
| reinstall_app                                  | false                                                                                   |
| only_testing                                   | ["CCIFeaturesOfAdd/addMeal"]                                                            |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun     |
| open_report                                    | false                                                                                   |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_output                               |
| output_files                                   | report.html,report.junit                                                                |
| buildlog_path                                  | ~/Library/Logs/scan                                                                     |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh                                                                                   |
| should_zip_build_products                      | false                                                                                   |
| use_clang_report_name                          | false                                                                                   |
| disable_concurrent_testing                     | true                                                                                    |
| xcargs                                         |  -parallel-testing-enabled NO                                                           |
| slack_use_webhook_configured_username_and_icon | false                                                                                   |
| slack_username                                 | fastlane                                                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                     |
| skip_slack                                     | false                                                                                   |
| slack_only_on_failure                          | false                                                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                       |
| fail_build                                     | true                                                                                    |
| include_simulator_logs                         | false                                                                                   |
| skip_build                                     | false                                                                                   |
| xcode_path                                     | /Applications/Xcode.app                                                                 |
| result_bundle                                  | false                                                                                   |
| build_for_testing                              | false                                                                                   |
+------------------------------------------------+-----------------------------------------------------------------------------------------+

DEBUG [2020-09-17 08:24:23.40]: Fetching available simulator devices
INFO [2020-09-17 08:24:23.95]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-17 08:24:23.95]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-17 08:24:23.97]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  -only-testing:CCIFeaturesOfAdd/addMeal test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200917-6484-1pc1ufh' 
INFO [2020-09-17 08:24:23.97]: ▸ Loading...
INFO [2020-09-17 08:24:27.05]: ▸ xcodebuild: error: Failed to build workspace temporary with scheme Transient Testing.
INFO [2020-09-17 08:24:27.05]: ▸    Reason: Tests in the target “CCIFeaturesOfAdd” can’t be run because “CCIFeaturesOfAdd” isn’t a member of the specified scheme.
xcodebuild: error: Failed to build workspace temporary with scheme Transient Testing.
    Reason: Tests in the target “CCIFeaturesOfAdd” can’t be run because “CCIFeaturesOfAdd” isn’t a member of the specified scheme.
ERROR [2020-09-17 08:24:27.07]: Exit status: 70
DEBUG [2020-09-17 08:24:27.07]: Batch # incrementing retry count to 1
DEBUG [2020-09-17 08:24:27.07]: Scan unable to test
ERROR [2020-09-17 08:24:27.07]: 
WARN [2020-09-17 08:24:27.07]: Lane Context:
INFO [2020-09-17 08:24:27.07]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"tests"}
ERROR [2020-09-17 08:24:27.07]: Error building/testing the application. See the log above.
INFO [2020-09-17 08:24:27.07]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 67          |
+------+------------------+-------------+

+-------------+--------------+----------------+
|          Plugin updates available           |
+-------------+--------------+----------------+
| Plugin      | Your Version | Latest Version |
+-------------+--------------+----------------+
| test_center | 3.14.2       | 3.14.3         |
+-------------+--------------+----------------+
INFO [2020-09-17 08:24:27.08]: To update all plugins, just run
INFO [2020-09-17 08:24:27.08]: $ bundle exec fastlane update_plugins

ERROR [2020-09-17 08:24:27.08]: fastlane finished with errors

#######################################################################
# fastlane 2.160.0 is available. You are on 2.159.0.
# You should use the latest version.
# Please update using `bundle update fastlane`.
#######################################################################

2.160.0 Deliver supports App Store Connect API Key
* [spaceship] support PENDING_APPLE_RELEASE (#17254) via Josh Holtz
* [deliver] add support for App Store Connect API Key (#17238) via Josh Holtz
* [deliver] add retry when fetching edit app version and edit app info (#17235) via Josh Holtz
* [frameit] allow setting font_weight for keyword/title (#17159) via Herbert Poul
* [actions] add filter date to download_dsyms (#17228) via Mark Woollard

Please update using `bundle update fastlane`
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
FastlaneCore::Interface::FastlaneBuildFailure: [!] Error building/testing the application. See the log above.
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/error_handler.rb:46:in `handle_build_error'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:73:in `block in test_app'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/command_executor.rb:90:in `execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:64:in `test_app'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/scan/lib/scan/runner.rb:22:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/helper/multi_scan_manager/retrying_scan.rb:73:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/helper/multi_scan_manager/retrying_scan.rb:59:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/helper/multi_scan_manager/test_batch_worker.rb:18:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:203:in `block in run_test_batches'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:200:in `each'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:200:in `each_with_index'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:200:in `run_test_batches'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/helper/multi_scan_manager/runner.rb:99:in `run'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:38:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:21:in `block in parsing_binding'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.159.0/bin/fastlane:23:in `'
  /usr/local/bin/fastlane:23:in `load'
  /usr/local/bin/fastlane:23:in `'

I think It does't work :(

lyndsey-ferguson commented 3 years ago

No it doesn't!

😢

What if, and I know I'm asking a lot, but I don't have these types of tests (nor time to set it up), you remove the "invocation tests" option, and add only_testing: ['FoodTracker2CucumberTests/CCIFeaturesOfAdd/addMeal'] and xctestrun: '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'?

And then run the lane?

I have one other user (that I recall/know of) who has invocation tests so I don't know how this works for them.

EstelaDF commented 3 years ago

@lyndsey-ferguson ok, no problem, I want to resolve this :)

My lane is this:

lane :tests do
    multi_scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      #testplan: "FoodTracker2",
      #invocation_based_tests: true,
      only_testing: ['FoodTracker2CucumberTests/CCIFeaturesOfAdd/addMeal'],
      xctestrun: '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun',
      device: "iPhone",
      try_count: 2,
      clean: true
    )
  end

And my output:

[✔] 🚀 
DEBUG [2020-09-17 18:02:56.28]: Checking if there are any plugins that should be loaded...
DEBUG [2020-09-17 18:02:56.28]: Loading 'fastlane-plugin-test_center' plugin
INFO [2020-09-17 18:02:56.28]: gem 'fastlane-plugin-test_center' is already installed
+-----------------------------+---------+----------------------------------------------------------+
|                                           Used plugins                                           |
+-----------------------------+---------+----------------------------------------------------------+
| Plugin                      | Version | Action                                                   |
+-----------------------------+---------+----------------------------------------------------------+
| fastlane-plugin-test_center | 3.14.2  | suppressed_tests suppress_tests tests_from_xcresult      |
|                             |         | suppress_tests_from_junit tests_from_xctestrun           |
|                             |         | quit_core_simulator_service collate_test_result_bundles  |
|                             |         | tests_from_junit multi_scan test_options_from_testplan   |
|                             |         | collate_html_reports collate_junit_reports               |
|                             |         | collate_json_reports testplans_from_scheme               |
|                             |         | collate_xcresults                                        |
+-----------------------------+---------+----------------------------------------------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-17 18:02:58.15]: ------------------------------
INFO [2020-09-17 18:02:58.15]: --- Step: default_platform ---
INFO [2020-09-17 18:02:58.15]: ------------------------------
INFO [2020-09-17 18:02:58.15]: Driving the lane 'tests' 🚀
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-17 18:02:58.17]: ------------------------
INFO [2020-09-17 18:02:58.17]: --- Step: multi_scan ---
INFO [2020-09-17 18:02:58.17]: ------------------------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------

+-----------------------+----------------------+
| Summary for multi_scan (test_center v3.14.2) |
+-----------------------+----------------------+
| try_count             | 2                    |
+-----------------------+----------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-17 18:02:58.19]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
DEBUG [2020-09-17 18:02:58.20]: Building the project in preparation for multi_scan testing
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-17 18:02:58.20]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
WARN [2020-09-17 18:02:58.20]: Lane Context:
INFO [2020-09-17 18:02:58.20]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"tests"}
ERROR [2020-09-17 18:02:58.20]: Unresolved conflict between options: 'xctestrun' and 'build_for_testing'
INFO [2020-09-17 18:02:58.21]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 0           |
+------+------------------+-------------+

+-------------+--------------+----------------+
|          Plugin updates available           |
+-------------+--------------+----------------+
| Plugin      | Your Version | Latest Version |
+-------------+--------------+----------------+
| test_center | 3.14.2       | 3.14.3         |
+-------------+--------------+----------------+
INFO [2020-09-17 18:02:58.34]: To update all plugins, just run
INFO [2020-09-17 18:02:58.34]: $ bundle exec fastlane update_plugins

ERROR [2020-09-17 18:02:58.34]: fastlane finished with errors
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
FastlaneCore::Interface::FastlaneError: [!] Unresolved conflict between options: 'xctestrun' and 'build_for_testing'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:134:in `block (2 levels) in verify_conflicts'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:119:in `each'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:119:in `block in verify_conflicts'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:107:in `each'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:107:in `verify_conflicts'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:68:in `initialize'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in `new'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in `create'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:261:in `prepare_scan_options_for_build_for_testing'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:227:in `build_for_testing'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:184:in `prepare_for_testing'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:30:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:21:in `block in parsing_binding'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/bin/fastlane:23:in `'
  /usr/local/bin/fastlane:23:in `load'
  /usr/local/bin/fastlane:23:in `'

This line is in red color: ERROR [2020-09-17 18:02:58.20]: Unresolved conflict between options: 'xctestrun' and 'build_for_testing'But, I didn't put the parameter build_for_testing in my lane.

lyndsey-ferguson commented 3 years ago

Oh, remove the clean: true

EstelaDF commented 3 years ago

@lyndsey-ferguson I removed the clean:true and I think it fails.

My lane:

lane :tests do
    multi_scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      #testplan: "FoodTracker2",
      #invocation_based_tests: true,
      only_testing: ['FoodTracker2CucumberTests/CCIFeaturesOfAdd/addMeal'],
      xctestrun: '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun',
      device: "iPhone",
      try_count: 2
      #clean: true
    )
  end

My output:

[✔] 🚀 
DEBUG [2020-09-18 08:00:58.25]: Checking if there are any plugins that should be loaded...
DEBUG [2020-09-18 08:00:58.25]: Loading 'fastlane-plugin-test_center' plugin
INFO [2020-09-18 08:00:58.25]: gem 'fastlane-plugin-test_center' is already installed
+-----------------------------+---------+----------------------------------------------------------+
|                                           Used plugins                                           |
+-----------------------------+---------+----------------------------------------------------------+
| Plugin                      | Version | Action                                                   |
+-----------------------------+---------+----------------------------------------------------------+
| fastlane-plugin-test_center | 3.14.2  | suppressed_tests suppress_tests tests_from_xcresult      |
|                             |         | suppress_tests_from_junit tests_from_xctestrun           |
|                             |         | quit_core_simulator_service collate_test_result_bundles  |
|                             |         | tests_from_junit multi_scan test_options_from_testplan   |
|                             |         | collate_html_reports collate_junit_reports               |
|                             |         | collate_json_reports testplans_from_scheme               |
|                             |         | collate_xcresults                                        |
+-----------------------------+---------+----------------------------------------------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-18 08:00:59.24]: ------------------------------
INFO [2020-09-18 08:00:59.24]: --- Step: default_platform ---
INFO [2020-09-18 08:00:59.24]: ------------------------------
INFO [2020-09-18 08:00:59.24]: Driving the lane 'tests' 🚀
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-18 08:00:59.26]: ------------------------
INFO [2020-09-18 08:00:59.26]: --- Step: multi_scan ---
INFO [2020-09-18 08:00:59.26]: ------------------------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------

+-----------------------+----------------------+
| Summary for multi_scan (test_center v3.14.2) |
+-----------------------+----------------------+
| try_count             | 2                    |
+-----------------------+----------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-18 08:00:59.27]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
DEBUG [2020-09-18 08:00:59.27]: Building the project in preparation for multi_scan testing
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-18 08:00:59.28]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
WARN [2020-09-18 08:00:59.28]: Lane Context:
INFO [2020-09-18 08:00:59.28]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"tests"}
ERROR [2020-09-18 08:00:59.28]: Unresolved conflict between options: 'xctestrun' and 'build_for_testing'
INFO [2020-09-18 08:00:59.28]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 💥   | multi_scan       | 0           |
+------+------------------+-------------+

ERROR [2020-09-18 08:00:59.29]: fastlane finished with errors
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
FastlaneCore::Interface::FastlaneError: [!] Unresolved conflict between options: 'xctestrun' and 'build_for_testing'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:134:in `block (2 levels) in verify_conflicts'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:119:in `each'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:119:in `block in verify_conflicts'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:107:in `each'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:107:in `verify_conflicts'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:68:in `initialize'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in `new'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in `create'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:261:in `prepare_scan_options_for_build_for_testing'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:227:in `build_for_testing'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:184:in `prepare_for_testing'
  /Library/Ruby/Gems/2.6.0/bundler/gems/fastlane-plugin-test_center-514957af30f8/lib/fastlane/plugin/test_center/actions/multi_scan.rb:30:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
  Fastfile:21:in `block in parsing_binding'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.160.0/bin/fastlane:23:in `'
  /usr/local/bin/fastlane:23:in `load'
  /usr/local/bin/fastlane:23:in `'
lyndsey-ferguson commented 3 years ago

Sorry, add this test_without_building: true.

EstelaDF commented 3 years ago

Ok, this is my lane:

lane :tests do
    multi_scan(
      workspace: "FoodTracker2.xcworkspace",
      scheme: "FoodTracker2",
      #testplan: "FoodTracker2",
      #invocation_based_tests: true,
      only_testing: ['FoodTracker2CucumberTests/CCIFeaturesOfAdd/addMeal'],
      xctestrun: '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun',
      device: "iPhone",
      try_count: 2,
      test_without_building: true
      #clean: true
    )
  end

And this is the output:

[✔] 🚀 
DEBUG [2020-09-21 08:04:51.48]: Checking if there are any plugins that should be loaded...
DEBUG [2020-09-21 08:04:51.48]: Loading 'fastlane-plugin-test_center' plugin
INFO [2020-09-21 08:04:51.48]: gem 'fastlane-plugin-test_center' is already installed
+-----------------------------+---------+----------------------------------------------------------+
|                                           Used plugins                                           |
+-----------------------------+---------+----------------------------------------------------------+
| Plugin                      | Version | Action                                                   |
+-----------------------------+---------+----------------------------------------------------------+
| fastlane-plugin-test_center | 3.14.2  | suppressed_tests suppress_tests tests_from_xcresult      |
|                             |         | suppress_tests_from_junit tests_from_xctestrun           |
|                             |         | quit_core_simulator_service collate_test_result_bundles  |
|                             |         | tests_from_junit multi_scan test_options_from_testplan   |
|                             |         | collate_html_reports collate_junit_reports               |
|                             |         | collate_json_reports testplans_from_scheme               |
|                             |         | collate_xcresults                                        |
+-----------------------------+---------+----------------------------------------------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-21 08:04:52.27]: ------------------------------
INFO [2020-09-21 08:04:52.27]: --- Step: default_platform ---
INFO [2020-09-21 08:04:52.27]: ------------------------------
INFO [2020-09-21 08:04:52.27]: Driving the lane 'tests' 🚀
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
INFO [2020-09-21 08:04:52.29]: ------------------------
INFO [2020-09-21 08:04:52.29]: --- Step: multi_scan ---
INFO [2020-09-21 08:04:52.29]: ------------------------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------

+-----------------------+----------------------+
| Summary for multi_scan (test_center v3.14.2) |
+-----------------------+----------------------+
| try_count             | 2                    |
+-----------------------+----------------------+

Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-21 08:04:52.30]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
DEBUG [2020-09-21 08:04:52.30]: Preparing Scan config options for multi_scan testing
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
ERROR [2020-09-21 08:04:52.30]: Using deprecated option: '--custom_report_file_name' (Use `--output_files` instead)
WARN [2020-09-21 08:04:52.37]: Resolving Swift Package Manager dependencies...
INFO [2020-09-21 08:04:52.37]: $ xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
INFO [2020-09-21 08:04:52.87]: ▸ Command line invocation:
INFO [2020-09-21 08:04:52.87]: ▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
INFO [2020-09-21 08:04:53.15]: ▸ resolved source packages: 
INFO [2020-09-21 08:04:53.16]: $ xcodebuild -showBuildSettings -workspace FoodTracker2.xcworkspace -scheme FoodTracker2
DEBUG [2020-09-21 08:04:54.03]: Fetching available simulator devices
ERROR [2020-09-21 08:04:54.19]: Ignoring 'iPhone', couldn’t find matching simulator
ERROR [2020-09-21 08:04:54.19]: Couldn't find any matching simulators for '["iPhone"]' - falling back to default simulator
INFO [2020-09-21 08:04:54.19]: Found simulator "iPhone 8 (13.7)"
DEBUG [2020-09-21 08:04:54.19]: Detected derived data path '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh'
DEBUG [2020-09-21 08:04:54.19]: > setup_logcollection
DEBUG [2020-09-21 08:04:54.19]: < done in TestCenter::Helper::MultiScanManager.initialize
INFO [2020-09-21 08:04:54.19]: Starting test run 1
DEBUG [2020-09-21 08:04:54.19]: Deleting xcresults:
DEBUG [2020-09-21 08:04:54.19]: Restarting Simulator FB3F5937-256F-49C8-8316-B0B346B375D2
INFO [2020-09-21 08:04:55.08]: Starting scan #1 with 1 tests.
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
Successfully loaded Appfile at path '/Users/estela/Documents/FoodTracker2/fastlane/Appfile'
-------
DEBUG [2020-09-21 08:04:55.08]: retrying_scan #update_scan_options
DEBUG [2020-09-21 08:04:55.08]:     Setting workspace to FoodTracker2.xcworkspace
DEBUG [2020-09-21 08:04:55.08]:     Setting scheme to FoodTracker2
DEBUG [2020-09-21 08:04:55.08]:     Setting only_testing to ["FoodTracker2CucumberTests/CCIFeaturesOfAdd/addMeal"]
DEBUG [2020-09-21 08:04:55.08]:     Setting xctestrun to /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun
DEBUG [2020-09-21 08:04:55.08]:     Setting test_without_building to true
DEBUG [2020-09-21 08:04:55.08]:     Setting output_types to html,junit
DEBUG [2020-09-21 08:04:55.08]:     Setting skip_detect_devices to false
DEBUG [2020-09-21 08:04:55.08]:     Setting reset_simulator to false
DEBUG [2020-09-21 08:04:55.08]:     Setting disable_slide_to_type to true
DEBUG [2020-09-21 08:04:55.08]:     Setting reinstall_app to false
DEBUG [2020-09-21 08:04:55.08]:     Setting clean to false
DEBUG [2020-09-21 08:04:55.08]:     Setting open_report to false
DEBUG [2020-09-21 08:04:55.08]:     Setting output_directory to /Users/estela/Documents/FoodTracker2/fastlane/test_output
DEBUG [2020-09-21 08:04:55.08]:     Setting output_files to report.html,report.junit
DEBUG [2020-09-21 08:04:55.08]:     Setting buildlog_path to ~/Library/Logs/scan
DEBUG [2020-09-21 08:04:55.08]:     Setting include_simulator_logs to false
DEBUG [2020-09-21 08:04:55.08]:     Setting should_zip_build_products to false
DEBUG [2020-09-21 08:04:55.08]:     Setting result_bundle to false
DEBUG [2020-09-21 08:04:55.08]:     Setting use_clang_report_name to false
DEBUG [2020-09-21 08:04:55.08]:     Setting disable_concurrent_testing to true
DEBUG [2020-09-21 08:04:55.08]:     Setting build_for_testing to false
DEBUG [2020-09-21 08:04:55.08]:     Setting xcargs to  -parallel-testing-enabled NO 
DEBUG [2020-09-21 08:04:55.08]:     Setting slack_use_webhook_configured_username_and_icon to false
DEBUG [2020-09-21 08:04:55.08]:     Setting slack_username to fastlane
DEBUG [2020-09-21 08:04:55.08]:     Setting slack_icon_url to https://fastlane.tools/assets/img/fastlane_icon.png
DEBUG [2020-09-21 08:04:55.08]:     Setting skip_slack to false
DEBUG [2020-09-21 08:04:55.08]:     Setting slack_only_on_failure to false
DEBUG [2020-09-21 08:04:55.08]:     Setting destination to ["platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2"]
DEBUG [2020-09-21 08:04:55.08]:     Setting xcodebuild_command to env NSUnbufferedIO=YES xcodebuild
DEBUG [2020-09-21 08:04:55.08]:     Setting fail_build to true
DEBUG [2020-09-21 08:04:55.08]:     Setting skip_build to false

+------------------------------------------------+-----------------------------------------------------------------------------------------+
|                                                         Summary for scan 2.160.0                                                         |
+------------------------------------------------+-----------------------------------------------------------------------------------------+
| workspace                                      | FoodTracker2.xcworkspace                                                                |
| scheme                                         | FoodTracker2                                                                            |
| only_testing                                   | ["FoodTracker2CucumberTests/CCIFeaturesOfAdd/addMeal"]                                  |
| xctestrun                                      | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun     |
| test_without_building                          | true                                                                                    |
| output_types                                   | html,junit                                                                              |
| skip_detect_devices                            | false                                                                                   |
| force_quit_simulator                           | false                                                                                   |
| reset_simulator                                | false                                                                                   |
| disable_slide_to_type                          | true                                                                                    |
| reinstall_app                                  | false                                                                                   |
| clean                                          | false                                                                                   |
| open_report                                    | false                                                                                   |
| output_directory                               | /Users/estela/Documents/FoodTracker2/fastlane/test_output                               |
| output_files                                   | report.html,report.junit                                                                |
| buildlog_path                                  | ~/Library/Logs/scan                                                                     |
| include_simulator_logs                         | false                                                                                   |
| derived_data_path                              | /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbz  |
|                                                | kdwgh                                                                                   |
| should_zip_build_products                      | false                                                                                   |
| result_bundle                                  | false                                                                                   |
| use_clang_report_name                          | false                                                                                   |
| disable_concurrent_testing                     | true                                                                                    |
| build_for_testing                              | false                                                                                   |
| xcargs                                         |  -parallel-testing-enabled NO                                                           |
| slack_use_webhook_configured_username_and_icon | false                                                                                   |
| slack_username                                 | fastlane                                                                                |
| slack_icon_url                                 | https://fastlane.tools/assets/img/fastlane_icon.png                                     |
| skip_slack                                     | false                                                                                   |
| slack_only_on_failure                          | false                                                                                   |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                       |
| fail_build                                     | true                                                                                    |
| skip_build                                     | false                                                                                   |
| xcode_path                                     | /Applications/Xcode.app                                                                 |
+------------------------------------------------+-----------------------------------------------------------------------------------------+

DEBUG [2020-09-21 08:04:55.09]: Fetching available simulator devices
INFO [2020-09-21 08:04:55.46]: Disabling 'Slide to Type' iPhone 8
INFO [2020-09-21 08:04:55.46]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Users/estela/Library/Developer/CoreSimulator/Devices/FB3F5937-256F-49C8-8316-B0B346B375D2/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
INFO [2020-09-21 08:04:55.47]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,id=FB3F5937-256F-49C8-8316-B0B346B375D2' -derivedDataPath /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh -disable-concurrent-testing -xctestrun '/Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Build/Products/FoodTracker2_FoodTracker2_iphonesimulator13.7-x86_64.xctestrun'  -parallel-testing-enabled NO  -only-testing:FoodTracker2CucumberTests/CCIFeaturesOfAdd/addMeal test-without-building | tee '/Users/estela/Library/Logs/scan/FoodTracker2-FoodTracker2.log' | xcpretty  --report html --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html' --report junit --output '/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit' --report junit --output '/var/folders/vv/4zdd97m510b2wh5xs_1b3zwr0000gn/T/junit_report20200921-33819-osb91f' 
INFO [2020-09-21 08:04:55.47]: ▸ Loading...
INFO [2020-09-21 08:04:56.18]: ▸ 2020-09-21 08:04:56.185 xcodebuild[33904:2425418]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
INFO [2020-09-21 08:04:56.18]: ▸ /Users/estela/Library/Developer/Xcode/DerivedData/FoodTracker2-gejaozxwqyuvkuefuccelbzkdwgh/Logs/Test/Test-Transient Testing-2020.09.21_08-04-56-+0200.xcresult/Staging/1_Test/Diagnostics/FoodTracker2CucumberTests-CC052286-9A97-4B39-8665-2A58F339EBD7/FoodTracker2CucumberTests-7F979DDA-B303-4485-B8D7-ADC998712757/Session-FoodTracker2CucumberTests-2020-09-21_080456-a0s4Vw.log
INFO [2020-09-21 08:04:56.18]: ▸ 2020-09-21 08:04:56.186 xcodebuild[33904:2425253] [MT] IDETestOperationsObserverDebug: (A3E9D63E-5C83-45EE-A5B3-F21A328083DC) Beginning test session FoodTracker2CucumberTests-A3E9D63E-5C83-45EE-A5B3-F21A328083DC at 2020-09-21 08:04:56.186 with Xcode 11E801a on target  {
INFO [2020-09-21 08:04:56.18]: ▸        SimDevice: iPhone 8 (FB3F5937-256F-49C8-8316-B0B346B375D2, iOS 13.7, Booted)
INFO [2020-09-21 08:04:56.18]: ▸ } (13.7 (17H22))
INFO [2020-09-21 08:04:58.82]: ▸ 2020-09-21 08:04:58.827 xcodebuild[33904:2425253] [MT] IDETestOperationsObserverDebug: (A3E9D63E-5C83-45EE-A5B3-F21A328083DC) Finished requesting crash reports. Continuing with testing.
INFO [2020-09-21 08:05:06.03]: ▸ Selected tests
INFO [2020-09-21 08:05:06.04]: ▸ Test Suite FoodTracker2CucumberTests.xctest started
INFO [2020-09-21 08:05:06.04]: ▸ [32;1m  Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
INFO [2020-09-21 08:05:06.04]: ▸ [0m
INFO [2020-09-21 08:05:06.31]: ▸ 2020-09-21 08:05:06.313 xcodebuild[33904:2425253] [MT] IDETestOperationsObserverDebug: 10.133 elapsed -- Testing started completed.
INFO [2020-09-21 08:05:06.31]: ▸ 2020-09-21 08:05:06.313 xcodebuild[33904:2425253] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
INFO [2020-09-21 08:05:06.31]: ▸ 2020-09-21 08:05:06.313 xcodebuild[33904:2425253] [MT] IDETestOperationsObserverDebug: 10.133 sec, +10.133 sec -- end
INFO [2020-09-21 08:05:06.39]: ▸ Test execute Succeeded
+--------------------+---+
|      Test Results      |
+--------------------+---+
| Number of tests    | 0 |
| Number of failures | 0 |
+--------------------+---+

DEBUG [2020-09-21 08:05:06.42]: Batch # incrementing retry count to 1
DEBUG [2020-09-21 08:05:06.42]: Scan passed the tests
DEBUG [2020-09-21 08:05:06.42]: ReportCollator collating
DEBUG [2020-09-21 08:05:06.42]: Results for each test run: [true]

+-------------------+-----------------------------------------------------------------------------+
|                                       multi_scan results                                        |
+-------------------+-----------------------------------------------------------------------------+
| result            | true                                                                        |
| total_tests       | 0                                                                           |
| passing_testcount | 0                                                                           |
| failed_testcount  | 0                                                                           |
| failed_tests      | []                                                                          |
| total_retry_count | 1                                                                           |
| report_files      | ["/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.junit",  |
|                   | "/Users/estela/Documents/FoodTracker2/fastlane/test_output/report.html"]    |
+-------------------+-----------------------------------------------------------------------------+

INFO [2020-09-21 08:05:06.43]: Successfully generated documentation at path '/Users/estela/Documents/FoodTracker2/fastlane/README.md'

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | multi_scan       | 14          |
+------+------------------+-------------+

+-------------+--------------+----------------+
|          Plugin updates available           |
+-------------+--------------+----------------+
| Plugin      | Your Version | Latest Version |
+-------------+--------------+----------------+
| test_center | 3.14.2       | 3.14.3         |
+-------------+--------------+----------------+
INFO [2020-09-21 08:05:06.44]: To update all plugins, just run
INFO [2020-09-21 08:05:06.44]: $ bundle exec fastlane update_plugins

INFO [2020-09-21 08:05:06.44]: fastlane.tools finished successfully 🎉

It seems multi_scan doesn't find the test :/

lyndsey-ferguson commented 3 years ago

😢

I don't know what to recommend to you next.

@yousefhamza you use Kiwi, which involves Invocation style tests, right? What should the :only_testing identifier be in order for the test to be found again?

I had guessed FoodTracker2CucumberTests/CCIFeaturesOfAdd/addMeal, but xcodebuild doesn't find that test.

Any thoughts on what's going on?

lyndsey-ferguson commented 3 years ago

@EstelaDF, Yousef will share his thoughts after he wraps up a big release he is working on. I'll leave this Issue open (I usually close them after inactivity).

reallyyun commented 3 years ago

@EstelaDF , just FYI, I met a similar error but I'm not with cucumberish. After our dev code moved to a new branch, run multi-scan will not able to execute any test, while is it working well on old branch. I spent couple of days, and finally found after changed the Enable Testability to Yes for Automation config, the multi-scan works again.
image

lyndsey-ferguson commented 3 years ago

@reallyyun thanks for the suggestion. One thing, her tests do run, (see this run), but we cannot specify individual tests in the way that are being generated in the Junit file. I don't know if that is something you were seeing too.

All the same it would be a good idea to double-check "Enable Testability".

reallyyun commented 3 years ago

@lyndsey-ferguson I'm running in 3 clones, without that settings no test is able to picked out for each clone, I'm still able to see run successfully msg.

[10:33:08]: Successfully finished 'UIAutomationTest' +------+----------------------------+-------------+ | fastlane summary | +------+----------------------------+-------------+ | Step | Action | Time (in s) | +------+----------------------------+-------------+ | 1 | opt_out_usage | 0 | | 2 | Verifying fastlane version | 0 | | 3 | default_platform | 0 | | 4 | xcode_select | 0 | | 5 | multi_scan | 272 | +------+----------------------------+-------------+

lyndsey-ferguson commented 3 years ago

@yousefhamza just to give us an idea, do you know when you'll be done with your next big release and be able to advise @EstelaDF and I on this issue?

BohdanSweep commented 3 years ago

Experienced the same type of issue. The tests are successfully found and ran when using the regular scan. Here how lane command looks:

run_tests(
            workspace: "{MyProjectName}.xcworkspace",
            scheme: "{MyProjectName} - Test"
        )

But when using multi_scan the test are not found. I'm running regular UI XCtests.

multi_scan(
            workspace: File.absolute_path('../{MyProjectName}.xcworkspace'),
            scheme: "{MyProjectName} - Test",
            try_count: 2,
        )

Were there any investigations of this issue?

lyndsey-ferguson commented 3 years ago

I am not aware of any investigation. @yousefhamza were you able to look into this? Any tips would be appreciated.

lyndsey-ferguson commented 3 years ago

I will close this issue unless someone has an idea of how to retry failed invocation tests.

Monte9 commented 3 years ago

@reallyyun your suggestion of "Enable Testability to Yes" fixed this issue for me. Thanks a ton! 💯

yousefhamza commented 3 years ago

Hi @lyndsey-ferguson sorry for the late reply 🙏

With invocation style tests only_testing should be empty for the first run, because the tests are created at runtime, for any subsequent run, only_testing should contain the test classes not the test cases, because test cases, because even after the tests run you can only run the classes not a single test case.

I got this conclusion from watching the "Test navigator" tab in Xcode, It shows 0 tests before running the test target, and after running the test target once the test classes/cases show but If you try to run the test case Xcode will finish with 0 tests run, and If you run the test class it will run the expected test cases within that class.

Hope that helps 🙏

lyndsey-ferguson commented 3 years ago

@yousefhamza I do think that this helps. I'll open this issue back up again.

lyndsey-ferguson commented 2 years ago

I want to apologize that I have not responded to this issue. A family health issue is requiring me to narrow my focus on the essentials and I don't have the time I need to focus on the plugin more than a minute. If you can get some other contributors to this project to help with this, I would consider merging a resulting PR.