{"id":15288364,"url":"https://github.com/marathonlabs/marathon","last_synced_at":"2025-05-14T21:06:15.377Z","repository":{"id":36970679,"uuid":"129365301","full_name":"MarathonLabs/marathon","owner":"MarathonLabs","description":"Cross-platform test runner","archived":false,"fork":false,"pushed_at":"2025-04-29T10:52:47.000Z","size":57465,"stargazers_count":602,"open_issues_count":65,"forks_count":126,"subscribers_count":17,"default_branch":"develop","last_synced_at":"2025-05-14T21:06:08.532Z","etag":null,"topics":["android","espresso","gradle","hacktoberfest","instrumentation","instrumentation-tests","ios","marathon","orchestrator","parallel","performance","test-runner","testing","testing-tool","uitest","uitesting","uitests","xcrun"],"latest_commit_sha":null,"homepage":"https://docs.marathonlabs.io","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarathonLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"malinskiy"}},"created_at":"2018-04-13T07:26:51.000Z","updated_at":"2025-05-04T10:05:06.000Z","dependencies_parsed_at":"2023-12-22T09:49:48.856Z","dependency_job_id":"4eb20622-0cd3-407c-aac0-be771b0e2924","html_url":"https://github.com/MarathonLabs/marathon","commit_stats":null,"previous_names":["malinskiy/marathon"],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarathonLabs%2Fmarathon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarathonLabs%2Fmarathon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarathonLabs%2Fmarathon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarathonLabs%2Fmarathon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarathonLabs","download_url":"https://codeload.github.com/MarathonLabs/marathon/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227611,"owners_count":22035669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","espresso","gradle","hacktoberfest","instrumentation","instrumentation-tests","ios","marathon","orchestrator","parallel","performance","test-runner","testing","testing-tool","uitest","uitesting","uitests","xcrun"],"created_at":"2024-09-30T15:48:06.598Z","updated_at":"2025-05-14T21:06:10.362Z","avatar_url":"https://github.com/MarathonLabs.png","language":"Kotlin","readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"docs/static/img/marathon-banner.svg\" alt=\"Marathon Logo\" /\u003e\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![GitHub release][img-version-badge]][repo] [![Slack][img-slack-badge]][slack] [![Telegram][img-telegram-badge]][telegram] [![PRs Welcome][prs-badge]][prs]\n\n[Releases][release]\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;[Documentation][docs]\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\n\u003c/div\u003e\n\n**Marathon** is a project that helps execute tests in the shortest time possible. Specifically it helps with **stability** of test execution adjusting for flakiness in the environment and in the tests and also achieves best **performance** using high parallelization\n\n## TL;DR\nMarathon is a fast, platform-independent test runner focused on performance and stability. It offers easy to use platform implementations for Android and iOS as well as an API for use with custom hardware farms and more techstacks.\n\nMarathon implements multiple key concepts of test execution such as test **batching**, **device pools**, test **sharding**, test **sorting**, **preventive retries** as well as **post-factum retries**. By default, most of these are set to conservative defaults but custom configurations are encouraged for those who want to optimize performance and/or stability.\n\nMarathon's primary focus is on **full control over the balance between stability of test execution, testing performance and cost**.\n\nFor more information see the [documentation][docs]\n\n### Overview\n#### Performance\nMarathon takes into account two key aspects of test execution:\n* The duration of the test\n* The probability of the test passing\n\nTest run can only finish as quickly as possible if we plan the execution of tests with regard to the expected duration of the test. On the other hand, we need to address the flakiness of the environment and of the test itself. One key indicator of flakiness is the *probability* of the test passing.\n\nMarathon takes a number of steps to ensure that each test run is as balanced as possible:\n* The flakiness strategy queues up preventive retries for tests which are expected to fail during the test run according to the current real-time statistical data\n* The sorting strategy forces long tests to be executed first so that if an unexpected retry attempt occurs it doesn't affect the test run significantly (e.g. at the end of execution)\n* If all else fail we revert back to post-factum retries, but we try to limit their impact on the run with retry quotas\n\n### Configuration\n\nCreate a basic **Marathonfile** in the root of your project with the following content:\n\nAndroid:\n```yaml\nname: \"My application\"\noutputDir: \"build/reports/marathon\"\nvendorConfiguration:\n  type: \"Android\"\n  applicationApk: \"dist/app-debug.apk\"\n  testApplicationApk: \"dist/app-debug-androidTest.apk\"\n```\n\niOS:\n```yaml\nname: \"My application\"\noutputDir: \"derived-data/Marathon\"\nvendorConfiguration:\n  type: \"iOS\"\n  bundle:\n    application: \"sample.app\"\n    testApplication: \"sampleUITests.xctest\"\n    testType: xcuitest\n```\n\nVendor section describes platform specific details.\n\nSince iOS doesn't have any way to discover remote execution devices you have to provide your simulators using the **Marathondevices** file:\n\n```yaml\nworkers:\n  - transport:\n      type: local\n    devices:\n      - type: simulator\n        udid: \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"\n      - type: simulatorProfile\n        deviceType: com.apple.CoreSimulator.SimDeviceType.iPhone-13-mini\n```\n\nThis **Marathondevices** file specifies a list of macOS instances and simulators for use. Marathon can use pre-provisioned simulators, but it can also provision new ones if needed.\n\nExample above uses the local instance where marathon is executed, but you can connect many more instance via SSH.\n\n\u003e ℹ️ The instance where you run marathon is not limited to macOS: if you're using remote macOS instances then\nyou can easily start your marathon run from Linux for example.\n\nYou can find more information on providing devices in the [workers documentation][docs-workers]\n\nThe file structure for testing should look something like this:\n\nAndroid:\n```shell-session\nfoo@bar $ tree .  \n.\n├── Marathonfile\n├── dist\n│   ├── app-debug.apk\n│   ├── app-debug-androidTest.apk\n```\n\niOS:\n```shell-session\nfoo@bar $ tree .  \n.\n├── Marathondevices\n├── Marathonfile\n├── build\n│   ├── my.app\n│   ├── my.xctest\n\n```\n\n### Execution\n\nStart the test runner in the root of your project\n```bash\n$ marathon \nXXX [main] INFO com.malinskiy.marathon.cli.ApplicationView - Starting marathon\nXXX [main] INFO com.malinskiy.marathon.cli.config.ConfigFactory - Checking Marathonfile config\n...\n```\n\n### Requirements\nMarathon requires Java Runtime Environment 17 or higher.\n\n## Move even faster with Marathon Cloud\n\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"docs/static/img/marathon-cloud-banner.svg\" alt=\"Marathon Logo\" /\u003e\n\u003c/h1\u003e\nMarathon Cloud is a scalable testing-as-a-service product designed and developed by us, the creators of Marathon. It's got all the cloud testing infrastructure you need to run any number of tests in less than 15 minutes, \nwhether you're a startup or a large enterprise.\n\n[Learn more][marathon-cloud]\n\n## Contributing\n\nSee [contributing docs][contributing]\n\n## License\n\nMarathon codebase is GPL 2.0 [LICENSE][LICENSE] with following optional components under specific licenses:\n* [libxctest-parser][libxctest-parser-license]\n\n\u003c!--\nRepo References\n--\u003e\n[repo]:https://github.com/MarathonLabs/marathon\n\n\u003c!--\nLink References\n--\u003e\n[img-version-badge]:https://img.shields.io/github/release/MarathonLabs/marathon.svg?style=for-the-badge\n[img-slack-badge]:https://img.shields.io/badge/Chat-Slack-49c39e?style=for-the-badge\n[img-telegram-badge]:https://img.shields.io/badge/Chat-Telegram-0088CC?style=for-the-badge\n\n[slack]:https://bit.ly/2LLghaW\n[telegram]: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TEuNTg4LTAuMjgyMTYgMS44MTU5LTI2LjQwOC0yNy40NjF6IiBmaWxsPSIjZGQ1MDRmIi8%2BIDwvZz48L3N2Zz4%3D\n\n[release]:https://github.com/MarathonLabs/marathon/releases/latest \"Latest Release (external link) ➶\"\n[docs]:https://docs.marathonlabs.io\n[docs-workers]:https://docs.marathonlabs.io/ios/workers\n[contributing]:https://docs.marathonlabs.io/intro/contribute\n[prs]:http://makeapullrequest.com \"Make a Pull Request (external link) ➶\"\n[LICENSE]:https://github.com/MarathonLabs/marathon/blob/-/LICENSE\n[libxctest-parser-license]: https://github.com/MarathonLabs/marathon/blob/-/vendor/vendor-apple/base/src/main/resources/EULA.md\n\n[marathon-cloud]:https://marathonlabs.io\n","funding_links":["https://github.com/sponsors/malinskiy"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarathonlabs%2Fmarathon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarathonlabs%2Fmarathon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarathonlabs%2Fmarathon/lists"}