https://github.com/testableapple/fastlane-plugin-xcmonkey
Challenge your apps on iOS with monkey testing 📱🐒
https://github.com/testableapple/fastlane-plugin-xcmonkey
Last synced: 11 months ago
JSON representation
Challenge your apps on iOS with monkey testing 📱🐒
- Host: GitHub
- URL: https://github.com/testableapple/fastlane-plugin-xcmonkey
- Owner: testableapple
- License: mit
- Created: 2023-02-05T14:27:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T17:12:43.000Z (about 3 years ago)
- Last Synced: 2025-03-02T20:41:35.598Z (about 1 year ago)
- Language: Ruby
- Homepage: https://testableapple.com/note-36
- Size: 1.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## Description
This fastlane plugin is a wrapper for [xcmonkey](https://github.com/alteral/xcmonkey) - a tool for doing stress testing of iOS apps.
It replicates `xcmonkey test` command.
| Option | Description | Default |
| --- | --- | --- |
| `udid` | Set device UDID | |
| `bundle_id` | Set target bundle identifier | |
| `session_path` | Path where test session should be saved | |
| `event_count` | Set events count | `60` |
| `exclude_taps` | Exclude taps from gestures list | `false` |
| `exclude_swipes` | Exclude swipes from gestures list | `false` |
| `exclude_presses` | Exclude presses from gestures list | `false` |
| `disable_simulator_keyboard` | Disable simulator keyboard | `false` |
| `ignore_crashes` | Ignore app crashes | `false` |
| `throttle` | Fixed delay between events in milliseconds | `0` |
## Prerequisites
```bash
brew install facebook/fb/idb-companion
pip3.6 install fb-idb
```
## Getting Started
To get started with `xcmonkey`, add it to your project by running:
```bash
fastlane add_plugin xcmonkey
```
## Usage
```ruby
lane :test do
bundle_id = 'com.apple.Maps'
device = 'iPhone 14'
sim = FastlaneCore::Simulator.all.filter { |d| d.name == device }.max_by(&:os_version)
udid = sim.udid
xcmonkey(udid: udid, bundle_id: bundle_id)
end
```