{"id":29179730,"url":"https://github.com/trendyol/mockingstar-ios","last_synced_at":"2025-07-01T19:06:25.987Z","repository":{"id":229781446,"uuid":"722054442","full_name":"Trendyol/mockingstar-ios","owner":"Trendyol","description":"Mocking Star SPM helper library for iOS applications.","archived":false,"fork":false,"pushed_at":"2025-02-03T11:24:45.000Z","size":4599,"stargazers_count":48,"open_issues_count":3,"forks_count":2,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-22T05:33:02.009Z","etag":null,"topics":["alamofire","interceptor","mock-server","swift","urlsession"],"latest_commit_sha":null,"homepage":"https://trendyol.github.io/mockingstar/documentation/mockingstar/gettingstarted-ios","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Trendyol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-22T10:40:35.000Z","updated_at":"2025-02-12T08:17:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"279bf4e1-b703-4fca-b095-0f42b6f21f41","html_url":"https://github.com/Trendyol/mockingstar-ios","commit_stats":null,"previous_names":["trendyol/mockingstar-ios"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Trendyol/mockingstar-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Trendyol","download_url":"https://codeload.github.com/Trendyol/mockingstar-ios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trendyol%2Fmockingstar-ios/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263021821,"owners_count":23401148,"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":["alamofire","interceptor","mock-server","swift","urlsession"],"created_at":"2025-07-01T19:06:18.822Z","updated_at":"2025-07-01T19:06:25.951Z","avatar_url":"https://github.com/Trendyol.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mocking Star 🌟\n\nMocking Star is a powerful request mocking tool designed to simplify the process of http request mocking, network debugging, and using UI tests for your mobile applications. \u003cbr\u003e\nWith just a single line of code, you can use Mocking Star in your project.\n\n![](https://github.com/Trendyol/mockingstar-ios/blob/main/MockingStarExample/MockingStarDemo.gif)\n\n### Key Features\n\n- **Mocking Requests**: Easily mock requests and test different cases with scenarios.\n- **Modifying Requests**: Modify intercepted requests to test different edge cases, allowing you to assess your application's performance under different conditions.\n- **Debugging Support**: Use Mocking Star to debug your network requests on your mac.\n- **UI Testing**: Integrate Mocking Star into your UI tests, creating a reliable and controlled testing environment to validate your mobile application's functionality.\n\nMocking Star App -\u003e [Mocking Star](https://github.com/Trendyol/mockingstar) \u003cbr\u003e\nAndroid Library -\u003e [Mocking Star Android Library](https://github.com/Trendyol/mockingstar-android)\n\n## Getting Started 🔥\nTo begin using Mocking Star in your Swift application, simply add the following line of code:\n\n```swift\nMockingStar.shared.inject()\n\n```\nThis line initializes Mocking Star and prepares it to intercept and process your requests.\n\n## How It Works 🚀\nMocking Star operates seamlessly through the use of URLProtocol to intercept incoming requests. Here's a step-by-step how it works:\n\n1. **Injection**: With `MockingStar.shared.inject()`, Mocking Star is injected into your application, ready to work its magic.\n2. **Request Intercept**: Using the power of URLProtocol, Mocking Star intercepts incoming requests before they leave your application and without change your production code.\n3. **Communication with Mocking Star App**: Intercepted requests are communicated to the Mocking Star macOS application.\n4. **Processing and Results**: Mocking Star app processes intercepted requests, allowing you to mock, modify, or debug them as needed. The result is then sent back to your application.\n\n## Usage Tips ❇️\n- **Mocking Requests**: With Mocking Star, mock requests and simulate different scenarios.\n- **Modifying Requests**: Modify intercepted requests to test different edge cases.\n- **Debugging Support**: Use Mocking Star to debug your network requests on your mac.\n- **UI Testing**: Integrate Mocking Star into your UI tests for reliable and controlled testing environments.\n- **Custom URLSessionConfiguration**: `MockingStar.sharedinject(configuration: URLSessionConfiguration)`\n\n## Installation \n**For Xcode project**\n\nYou can add [mockingstar-ios](https://github.com/Trendyol/mockingstar-ios) to your project as a package.\n\n\u003e `https://github.com/Trendyol/mockingstar-ios`\n\n**For Swift Package Manager**\n\nIn `Package.swift` add:\n\n``` swift\ndependencies: [\n    .package(url: \"https://github.com/Trendyol/mockingstar-ios\", from: \"1.0.0\"),\n]\n```\n\n## License\n\nThis library is released under the MIT license. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendyol%2Fmockingstar-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrendyol%2Fmockingstar-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendyol%2Fmockingstar-ios/lists"}