Continuous Integration

RSS for tag

Continuous integration is the process of automating and streamlining the building, analyzing, testing, and archiving of your apps, in order to ensure that they are always in a releasable state.

Posts under Continuous Integration tag

129 Posts

Post

Replies

Boosts

Views

Activity

Test target: Timed out waiting for simulator to boot
We're getting 10 errors every time a bot is run. Each error looks like this:Error: Uncategorized: Test target Tests encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe this error represents a bug, please attach the log file at /Library/Developer/XcodeServer/Integrations/Integration-863d69d5efb05c26c9490d1c10056164/Session-2015-07-06_16:01:08-hXQWog.log)The log file referred to doesn't exist. The "/Library/Developer/XcodeServer/Integrations/" directory exists but it only includes a directory names Caches.Build and analyze are successful, but the tests do not run. The tests run successfully from my development machine. This problem seems to come and go.Sometimes we create a new bot for a branch and the errors don't initially occur, but start occurring later. On other bots, the errors initially occur, but stop occurring after several of integrations. Our integration usually takes 3 minutes. When the 10 errors occur, the integration takes 21 minutes.We're using OS X 10.10.4 (14E46), OS X Server 4.1.3 (14S1127), and Xcode 6.4 (6E35b), but have seen these errors on and off for months.Any ideas on how to resolve this?
8
0
6.7k
Oct ’21
Can one do automated testing with a System Extension? (And if so, how?)
In particular, network extensions, which need to be installed/activated by the containing app. I'm not particularly great at GUI stuff, so maybe there's a way one can simulate/automate that part? I'm assuming CI testing, presumably done with VMs being created on the fly to build & test. (I admit a historical failure on unit testing for my code, but most of that has historically been kernel code. I'm trying to do better!) I again apologise for my obvious ignorance at some of this.
2
0
738
Oct ’21
Code Review mode for multiple repo project
I have an Xcode 13 project (generated with CMake) with multiple dependencies, each one pulling a different repo. I'd like to use the new Code review mode, however I can't seem to switch which repo the project is looking at. Additionally, I can use the new source control dropdown to checkout different branches however the commit hash that is displayed is from the first alphabetically ordered dependency. Is it possible to scope these features to a specific repo?
0
0
516
Oct ’21
CI tests failing with "Could not compute signing task inputs"
My CircleCI workflow has started failing with an error I can't seem to find any documentation for: Could not compute signing task inputs - operation was cancelled. ... and then a reference to a 3rd party library's product, eg.: (in target 'Appboy_iOS_SDK_AppboyKit' from project 'Appboy_iOS_SDK'). I'm using SPM to manage dependencies and I'm trying to modularize my Xcode project by adding a local SPM package. Below is the relevant part of the CircleCI output. I can't seem to figure out what these errors are referring to and they don't seem to occur when I remove UI tests from the scheme, so I'm assuming this has something to do with the "Copy Bundle Resources" step of the "MyAppUITests" target. Any help would be much appreciated. Xcode version: 12.5.1 [00:00:45]: Running Tests: ▸ Touching MyApp.app (in target 'MyApp' from project 'MyApp') [00:00:45]: ▸ Build Succeeded [00:00:45]: ▸ 2021-07-22 00:00:45.521 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa5036121a0> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.526 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50305bb20> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.531 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50306a230> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.536 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503076680> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.549 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503660a10> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.555 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50366c6a0> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Appboy_iOS_SDK_AppboyKit' from project 'Appboy_iOS_SDK') [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Appboy_iOS_SDK_AppboyUI' from project 'Appboy_iOS_SDK') [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Mixpanel_Mixpanel' from project 'Mixpanel') [00:00:52]: ▸ Testing failed: [00:00:52]: ▸ Could not compute signing task inputs - operation was cancelled. [00:00:52]: ▸ Testing cancelled because the build failed. [00:00:52]: ▸ ** TEST FAILED **```
1
0
1.4k
Sep ’21
UI Testing Failure - App accessibility isn't loaded
I think I've encountered a new way to fail.t = 1.13s Waiting for accessibility to loadt = 61.14s Assertion Failure: UI Testing Failure - App accessibility isn't loadedThis happens when running an integration via Xcode bot, on a rather large codebase The test runs fine on my local machine's Xcode, but fails on the server. A simple toy app also finishes integration without any issues, so likely the app is triggering some bizarre edge case.Can anyone at Apple comment on whatever could be causing this?
38
0
18k
Sep ’21
Xcode 13 beta: “xcrun: error: Failed to locate 'instruments'”
This a repost from https://stackoverflow.com/questions/68872891/xcode-13-beta-xcrun-error-failed-to-locate-instruments Please note, I'm looking for /Applications/Xcode.app/Contents/Developer/usr/bin/instruments util (lower-case), not the Instruments app which can be found in Xcode.app/Contents/Applications. I have both Xcode12 and Xcode13-beta-5 on my computer. When run xcrun instruments -w <device id>, Xcode13 says xcrun: error: Failed to locate 'instruments'. Locating the "instruments" in Xcode12: olia@Olhas-MacBook-Pro % ls /Applications/Xcode.app/Contents/Developer/usr/bin/*instruments* # output ✅ /Applications/Xcode.app/Contents/Developer/usr/bin/instruments Locating the "instruments" in Xcode13: olia@Olhas-MacBook-Pro % ls /Applications/Xcode-beta.app/Contents/Developer/usr/bin/*instruments* # output ❌ zsh: no matches found: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/*instruments* Here, Xcode-beta.app is Xcode13, and Xcode.app is Xcode12.
1
0
3.5k
Aug ’21
XCUITest Failure - Error: activate application (current state: Running Background)
On XCode 12.0.1, I have this intermittent error, is there any way to fix this? t = 0.19s Open <bundle_id> t = 0.29s Launch <bundle_id> <unknown>:0: error: -[<test_name>] : activate application '<XCUIApplicationImpl: 0x600000842d00 <bundle_id> at <app_path>' (current state: Running Background) t = 61.11s Setting up automation session t = 61.13s Wait for <bundle_id> to idle The test continues running for a while, but it failed because of the error during the launch step (0.29s - 61.11s). Also, notice an unexpected long launching here, it normally just takes 10-15s for this step. Thanks
1
0
721
Aug ’21
Test target: Timed out waiting for simulator to boot
We're getting 10 errors every time a bot is run. Each error looks like this:Error: Uncategorized: Test target Tests encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe this error represents a bug, please attach the log file at /Library/Developer/XcodeServer/Integrations/Integration-863d69d5efb05c26c9490d1c10056164/Session-2015-07-06_16:01:08-hXQWog.log)The log file referred to doesn't exist. The "/Library/Developer/XcodeServer/Integrations/" directory exists but it only includes a directory names Caches.Build and analyze are successful, but the tests do not run. The tests run successfully from my development machine. This problem seems to come and go.Sometimes we create a new bot for a branch and the errors don't initially occur, but start occurring later. On other bots, the errors initially occur, but stop occurring after several of integrations. Our integration usually takes 3 minutes. When the 10 errors occur, the integration takes 21 minutes.We're using OS X 10.10.4 (14E46), OS X Server 4.1.3 (14S1127), and Xcode 6.4 (6E35b), but have seen these errors on and off for months.Any ideas on how to resolve this?
Replies
8
Boosts
0
Views
6.7k
Activity
Oct ’21
Can one do automated testing with a System Extension? (And if so, how?)
In particular, network extensions, which need to be installed/activated by the containing app. I'm not particularly great at GUI stuff, so maybe there's a way one can simulate/automate that part? I'm assuming CI testing, presumably done with VMs being created on the fly to build & test. (I admit a historical failure on unit testing for my code, but most of that has historically been kernel code. I'm trying to do better!) I again apologise for my obvious ignorance at some of this.
Replies
2
Boosts
0
Views
738
Activity
Oct ’21
Code Review mode for multiple repo project
I have an Xcode 13 project (generated with CMake) with multiple dependencies, each one pulling a different repo. I'd like to use the new Code review mode, however I can't seem to switch which repo the project is looking at. Additionally, I can use the new source control dropdown to checkout different branches however the commit hash that is displayed is from the first alphabetically ordered dependency. Is it possible to scope these features to a specific repo?
Replies
0
Boosts
0
Views
516
Activity
Oct ’21
CI tests failing with "Could not compute signing task inputs"
My CircleCI workflow has started failing with an error I can't seem to find any documentation for: Could not compute signing task inputs - operation was cancelled. ... and then a reference to a 3rd party library's product, eg.: (in target 'Appboy_iOS_SDK_AppboyKit' from project 'Appboy_iOS_SDK'). I'm using SPM to manage dependencies and I'm trying to modularize my Xcode project by adding a local SPM package. Below is the relevant part of the CircleCI output. I can't seem to figure out what these errors are referring to and they don't seem to occur when I remove UI tests from the scheme, so I'm assuming this has something to do with the "Copy Bundle Resources" step of the "MyAppUITests" target. Any help would be much appreciated. Xcode version: 12.5.1 [00:00:45]: Running Tests: ▸ Touching MyApp.app (in target 'MyApp' from project 'MyApp') [00:00:45]: ▸ Build Succeeded [00:00:45]: ▸ 2021-07-22 00:00:45.521 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa5036121a0> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.526 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50305bb20> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.531 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50306a230> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.536 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503076680> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.549 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503660a10> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.555 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50366c6a0> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Appboy_iOS_SDK_AppboyKit' from project 'Appboy_iOS_SDK') [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Appboy_iOS_SDK_AppboyUI' from project 'Appboy_iOS_SDK') [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Mixpanel_Mixpanel' from project 'Mixpanel') [00:00:52]: ▸ Testing failed: [00:00:52]: ▸ Could not compute signing task inputs - operation was cancelled. [00:00:52]: ▸ Testing cancelled because the build failed. [00:00:52]: ▸ ** TEST FAILED **```
Replies
1
Boosts
0
Views
1.4k
Activity
Sep ’21
UI Testing Failure - App accessibility isn't loaded
I think I've encountered a new way to fail.t = 1.13s Waiting for accessibility to loadt = 61.14s Assertion Failure: UI Testing Failure - App accessibility isn't loadedThis happens when running an integration via Xcode bot, on a rather large codebase The test runs fine on my local machine's Xcode, but fails on the server. A simple toy app also finishes integration without any issues, so likely the app is triggering some bizarre edge case.Can anyone at Apple comment on whatever could be causing this?
Replies
38
Boosts
0
Views
18k
Activity
Sep ’21
Xcode bot does not see repository branches
After updating the XCode to version 11.4 (11E146), I stopped seeing repository branches in the bot settings. But I see these repository branches in Source Controll Navigator. Does anyone know how I can fix it?
Replies
6
Boosts
0
Views
2.1k
Activity
Aug ’21
Xcode 13 beta: “xcrun: error: Failed to locate 'instruments'”
This a repost from https://stackoverflow.com/questions/68872891/xcode-13-beta-xcrun-error-failed-to-locate-instruments Please note, I'm looking for /Applications/Xcode.app/Contents/Developer/usr/bin/instruments util (lower-case), not the Instruments app which can be found in Xcode.app/Contents/Applications. I have both Xcode12 and Xcode13-beta-5 on my computer. When run xcrun instruments -w <device id>, Xcode13 says xcrun: error: Failed to locate 'instruments'. Locating the "instruments" in Xcode12: olia@Olhas-MacBook-Pro % ls /Applications/Xcode.app/Contents/Developer/usr/bin/*instruments* # output ✅ /Applications/Xcode.app/Contents/Developer/usr/bin/instruments Locating the "instruments" in Xcode13: olia@Olhas-MacBook-Pro % ls /Applications/Xcode-beta.app/Contents/Developer/usr/bin/*instruments* # output ❌ zsh: no matches found: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/*instruments* Here, Xcode-beta.app is Xcode13, and Xcode.app is Xcode12.
Replies
1
Boosts
0
Views
3.5k
Activity
Aug ’21
XCUITest Failure - Error: activate application (current state: Running Background)
On XCode 12.0.1, I have this intermittent error, is there any way to fix this? t = 0.19s Open <bundle_id> t = 0.29s Launch <bundle_id> <unknown>:0: error: -[<test_name>] : activate application '<XCUIApplicationImpl: 0x600000842d00 <bundle_id> at <app_path>' (current state: Running Background) t = 61.11s Setting up automation session t = 61.13s Wait for <bundle_id> to idle The test continues running for a while, but it failed because of the error during the launch step (0.29s - 61.11s). Also, notice an unexpected long launching here, it normally just takes 10-15s for this step. Thanks
Replies
1
Boosts
0
Views
721
Activity
Aug ’21
XCTest profile
I wrote a few unit test cases using XCTest by mocking the data? Is there any best practice to have multiple test profiles with different data sets? Sometime mock should return nil, sometimes an array with 2 elements and sometimes an array with 10 elements. How to have multiple test profiles?
Replies
0
Boosts
0
Views
795
Activity
Aug ’21