Add iOS TCP testing support with CLI commands and GitHub workflow#77
Add iOS TCP testing support with CLI commands and GitHub workflow#77mattleibow merged 19 commits intomainfrom
Conversation
mattleibow
left a comment
There was a problem hiding this comment.
Use the appledev.tools code please.
Maybe clone the https://github.com/redth/appledev.tools repo and browse the apis available.
Updated the iOS service implementation to use the AppleDev library instead of custom xcrun calls. The service now uses SimCtl for simulator operations and AppBundleReader for Info.plist parsing. Changes in commit 6426891. |
mattleibow
left a comment
There was a problem hiding this comment.
Use the dotnet tool and not xcrun.
You will probably have to install it first, so run
dotnet tool install --local AppleDev.Tools --version 0.6.2
Before you start to work. Keep in mind, this tool may only work on macos so you will have to use the source to figure out the commands.
Updated implementation to use the dotnet tool instead of xcrun. Installed AppleDev.Tools v0.6.2 and replaced the service to use Process calls to |
4423882 to
7b53275
Compare
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
…ality Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
This reverts commit 810405e.
…tart time Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
3084174 to
fb2181c
Compare
|
Merging now with a submodule as this work is done. As soon as the AppleDev tool is released, I will delete the submodule and update the packages. |
This pull request introduces significant updates to support iOS testing, improve workflows, and enhance cross-platform CLI functionality. Key changes include adding iOS-specific commands and updating workflows for consistency.
iOS Testing Support:
iOSTestCommandclass to handle iOS-specific test operations, including app installation, execution, and cleanup on simulators. This supports features like device log saving and error handling. (src/DeviceRunners.Cli/Commands/iOS/TestCommand.cs, src/DeviceRunners.Cli/Commands/iOS/TestCommand.csR1-R163)Program.csto include iOS-specific commands and examples for running tests on iOS simulators. (src/DeviceRunners.Cli/Program.cs, [1] [2]TestStartResultmodel to include aDeviceLogFileproperty for saving iOS device logs. (src/DeviceRunners.Cli/Models/TestStartResult.cs, src/DeviceRunners.Cli/Models/TestStartResult.csR12)Workflow Enhancements:
test-tcp-ios.ymlworkflow for running iOS tests on macOS runners, including steps for setting up tools, creating simulators, and running tests. (.github/workflows/test-tcp-ios.yml, .github/workflows/test-tcp-ios.ymlR1-R72)test-tcp-android.yml,test-tcp-macos.yml,test-tcp-windows.yml,test-tcp-windows-unpackaged.yml) to use thereleaseconfiguration for building and installing CLI tools for consistency. [1] [2] [3] [4]Miscellaneous:
setup-toolsworkflow to ensure all required submodules are initialized. (.github/workflows/setup-tools/action.yml, .github/workflows/setup-tools/action.ymlR14-R16).config/dotnet-tools.jsonto includeappledev.toolsfor managing Apple development tools. (.config/dotnet-tools.json, .config/dotnet-tools.jsonL9-R24)