Commit f8c9b58
committed
feat: Add IntegrationTests project with Tuist and WireMock setup
- Add Tuist project configuration for IntegrationTests
- Add WireMock recorder script for API mocking
- Add initial test app implementation
- Add proxy mappings for events and identify endpoints
- Add README and generation scripts
Add NO_OPEN parameter to generate.sh to control Xcode opening
- Remove unused configuration variables
- Add NO_OPEN parameter (defaults to false)
- Conditionally call tuist generate with --no-open flag when NO_OPEN=true
- Allows generate.sh to be used both standalone (opens Xcode) and from other scripts (skips Xcode)
Refactor run_wiremock_recorder.sh to use detached mode with auto-cleanup
- Add generate.sh call at the beginning to build project
- Run WireMock in detached mode (-d flag) with named container
- Extract logic into three functions: start_wiremock, wait_for_wiremock, stop_wiremock
- Add health check waiting for WireMock to be ready (checks admin API)
- Implement trap for automatic cleanup on EXIT/INT/TERM signals
- Script now stays running until interrupted, ensuring proper container cleanup
Add build_application function to run_wiremock_recorder.sh
Add reset_simulators function
Add find_device, start_simulator and install_application functions
Add launch_application and wait_for_app_completion functions
Add automatic device selection and test execution flow
- Add find_available_device() function to automatically select available iPhone simulator
- Add find_app_path() function to locate built application
- Add complete test execution flow after WireMock starts
- Update device priority list to include iPhone 17
- Move DEVICE_NAME to global variables for dynamic assignment
Fix build command to use generic iOS Simulator platform and add quiet mode
- Change destination to 'generic/platform=iOS Simulator' to avoid dependency on specific device name
- Add -quiet flag to reduce build output verbosity
- change order
Update README: clarify purpose as API recording tool for testing
- Update description to focus on recording API requests for later use in tests
- Simplify prerequisites and overview sections
- Remove detailed technical sections (Build Process, WireMock Recording, Device Selection, Benefits)
- Consolidate troubleshooting into single section for port conflicts
- Remove CI/CD integration examples
- Update development workflow to emphasize recording purpose
Use local SDK sources directly instead of building xcframework
- Update Project.swift to use .local(path: '../') package reference
- Remove Tuist/Package.swift to allow Xcode to resolve local package
- Simplify generate.sh to only generate project (no xcframework build)
- Update README to reflect new simpler approach
- Remove temp_artifacts directory (no longer needed)
Benefits:
- No need to rebuild xcframework for every change
- Xcode automatically picks up latest source code changes
- Much faster development workflow
- Simpler and more maintainable approach
Remove generate.sh script and update documentation
- Delete generate.sh (no longer needed - tuist generate is called directly)
- Update README to remove generate.sh section
- Simplify available scripts documentation to only show run_wiremock_recorder.sh
- add documentation how to use tuist
- cleanup .gitignore
Remove comment1 parent 470585f commit f8c9b58
File tree
8 files changed
+433
-0
lines changed- IntegrationTests
- Sources
- wiremock-recordings/mappings
8 files changed
+433
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments