fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps

Home Page:https://fastlane.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test output empty

drekka opened this issue · comments

New Issue Checklist

Issue Description

I'm new to fast lane having inherited a fast lane based project from another developer. My problem is that the test reports are empty, even though hundreds of tests have been run. My config looks like this

run_tests(
      workspace: "XXXXX.xcworkspace",
      scheme: "XXXXX.com UAT",
      devices: ['iPhone 12', 'iPad Air (5th generation)'],
      xcconfig: "XXXXX/Config/XcodeConfig/ci_test.xcconfig",
      derived_data_path: "tmp/build_data_path",
      ensure_devices_found: true,
      reset_simulator: true,
      include_simulator_logs: true
)

and typically I'll see something like this:

2022-05-27 15:02:40.822 xcodebuild[50888:3263035] [MT] IDETestOperationsObserverDebug: 41.466 elapsed -- Testing started completed.
2022-05-27 15:02:40.823 xcodebuild[50888:3263035] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2022-05-27 15:02:40.823 xcodebuild[50888:3263035] [MT] IDETestOperationsObserverDebug: 41.466 sec, +41.466 sec -- end
2022-05-27 15:02:40.875 xcodebuild[50888:3263035] [MT] IDETestOperationsObserverDebug: 41.521 elapsed -- Testing started completed.
2022-05-27 15:02:40.875 xcodebuild[50888:3263035] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2022-05-27 15:02:40.875 xcodebuild[50888:3263035] [MT] IDETestOperationsObserverDebug: 41.521 sec, +41.521 sec -- end
Failing tests:
	XXXXXTests:
		SessionLogTest.testActivityAfterFourProductBrowse()
		SessionLogTest.testActivityAfterSearch()

** TEST FAILED **
[15:02:44]: Exit status: 65
[15:02:44]: ------------------------------
[15:02:44]: --- Collecting system logs ---
[15:02:44]: ------------------------------
[15:02:44]: $ xcrun simctl spawn 7D36704C-6175-4C64-9CDC-4467A86B2A28 log collect --start '2022-05-27 14:50:57' --output ...<project_dir>.../tmp/build_data_path/test_results/system_logs-iPhone\ 12_iOS_15.4.logarchive 2>/dev/null
[15:02:47]: $ xcrun simctl spawn C8B017EA-4642-4F8B-8B88-C7D609AADFD1 log collect --start '2022-05-27 14:50:57' --output ...<project_dir>.../tmp/build_data_path/test_results/system_logs-iPad\ Air\ \(5th\ generation\)_iOS_15.4.logarchive 2>/dev/null
[15:02:50]: Successfully sent Slack notification
+--------------------+-----+
|       Test Results       |
+--------------------+-----+
| Number of tests    | 278 |
| Number of failures | 2   |
+--------------------+-----+

So my question is what could be wrong, why are there no tests being reported in the report.html or report.junit files?

Command executed

bundle exec fastlane run_test

Environment

fastlane | 2.206.2

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

The empty() function checks whether a variable is empty or not. This function returns false if the variable exists and is not empty, otherwise it returns true. The following values evaluates to empty: 0. MGS.Marriott.com

The empty() function checks whether a variable is empty or not. This function returns false if the variable exists and is not empty, otherwise it returns true. The following values evaluates to empty: 0. MyAtriumHealth.org

Do you have an update on this? :) thank you in advance.

ezoic increase your site revenue