{"id":15038631,"url":"https://github.com/quick/swift-fakes","last_synced_at":"2026-01-02T05:48:57.824Z","repository":{"id":230315782,"uuid":"779069856","full_name":"Quick/swift-fakes","owner":"Quick","description":"Test Doubles for Swift","archived":false,"fork":false,"pushed_at":"2025-01-09T19:23:45.000Z","size":479,"stargazers_count":23,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T23:52:43.599Z","etag":null,"topics":["bdd","fakes","ios","mocks","spies","stubs","swift","testing"],"latest_commit_sha":null,"homepage":"https://quick.github.io/swift-fakes/documentation/fakes","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Quick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["younata"]}},"created_at":"2024-03-29T01:15:31.000Z","updated_at":"2025-01-09T19:23:49.000Z","dependencies_parsed_at":"2024-04-13T01:43:56.905Z","dependency_job_id":"62254b44-f92b-4ef5-bc48-dcc9918ee89c","html_url":"https://github.com/Quick/swift-fakes","commit_stats":null,"previous_names":["quick/swift-fakes"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quick%2Fswift-fakes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quick%2Fswift-fakes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quick%2Fswift-fakes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quick%2Fswift-fakes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quick","download_url":"https://codeload.github.com/Quick/swift-fakes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131454,"owners_count":21052819,"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":["bdd","fakes","ios","mocks","spies","stubs","swift","testing"],"created_at":"2024-09-24T20:39:20.724Z","updated_at":"2026-01-02T05:48:57.795Z","avatar_url":"https://github.com/Quick.png","language":"Swift","readme":"# swift-fakes\n\nSwift Fakes aims to improve the testability of Swift by providing standardized\n[test doubles](https://martinfowler.com/bliki/TestDouble.html).\n\nTest doubles are objects used to replace production objects for testing purposes.\n\n## Installation\n\nTo use the `Fakes` library in a SwiftPM project, add the following line to the\ndependencies in your `Package.swift` file:\n\n```swift\n.package(url: \"https://github.com/Quick/swift-fakes\", from: \"0.1.1\"),\n```\n\nInclude `\"Fakes\"` as a dependency for your test target:\n\n```swift\n.testTarget(name: \"\u003ctarget\u003e\", dependencies: [\n    .product(name: \"Fakes\", package: \"swift-fakes\"),\n]),\n```\n\n## Motivation\n\nWhen writing tests, we want to write one thing at a time. This is best done by\nproviding _fakes_ or non-production test-controllable objects to the thing being\ntested (the [subject](https://github.com/testdouble/contributing-tests/wiki/Subject)).\nThis is typically done by writing fakes that implement the protocols that the\nsubject depends on. Swift Fakes aims to make writing Fakes as easy as possible.\n\n## Contents\n\nFor the time being, Swift Fakes only offers the `Spy` object. `Spy`s are a kind\nof test double that record calls to the object, and return a preset response.\n\n### Spy\n\nSpies are meant to be used in Fake objects to record arguments to a call, and\nreturn pre-stubbed responses.\n\nSee the [documentation](https://quick.github.io/swift-fakes/documentation/fakes).\n\n## Source Stability\n\nSwift Fakes is currently available as an Alpha. By 1.0, we aim to have it source\nstable and following Semantic Versioning.\n","funding_links":["https://github.com/sponsors/younata"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquick%2Fswift-fakes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquick%2Fswift-fakes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquick%2Fswift-fakes/lists"}