{"id":16848807,"url":"https://github.com/andyfinnell/testkit","last_synced_at":"2025-07-30T21:35:29.622Z","repository":{"id":73093455,"uuid":"383162714","full_name":"andyfinnell/TestKit","owner":"andyfinnell","description":"Personal set of Swift testing utilities","archived":false,"fork":false,"pushed_at":"2024-09-20T22:33:55.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T07:44:19.290Z","etag":null,"topics":["swift","testing"],"latest_commit_sha":null,"homepage":"","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/andyfinnell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"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}},"created_at":"2021-07-05T14:08:27.000Z","updated_at":"2024-09-20T22:33:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3f7547b-ebdd-48b9-b13f-9526aa6d4beb","html_url":"https://github.com/andyfinnell/TestKit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/andyfinnell/TestKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfinnell%2FTestKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfinnell%2FTestKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfinnell%2FTestKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfinnell%2FTestKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyfinnell","download_url":"https://codeload.github.com/andyfinnell/TestKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfinnell%2FTestKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945354,"owners_count":24170218,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["swift","testing"],"created_at":"2024-10-13T13:12:41.473Z","updated_at":"2025-07-30T21:35:29.589Z","avatar_url":"https://github.com/andyfinnell.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TestKit\n![Build](https://github.com/andyfinnell/TestKit/workflows/Build/badge.svg) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)\n\nTestKit is a Swift package to make testing with XCTest a tiny bit more ergonomic. It's an extraction of my personal set of testing utils so I don't have to copy-pasta them across projects.\n\n## Requirements\n\n- Swift 5.3 or greater\n- iOS/tvOS 13 or greater OR macOS 10.15 or greater\n\n## Installation\n\nCurrently, TestKit is only available as a Swift Package.\n\n### ...using a Package.swift file\n\nOpen the Package.swift file and edit it:\n\n1. Add TestKit repo to the `dependencies` array.\n1. Add TestKit as a dependency of the target that will use it\n\n```Swift\n// swift-tools-version:5.3\n\nimport PackageDescription\n\nlet package = Package(\n  // ...snip...\n  dependencies: [\n    .package(url: \"https://github.com/andyfinnell/TestKit.git\", from: \"0.0.1\")\n  ],\n  targets: [\n    .target(name: \"MyTarget\", dependencies: [\"TestKit\"])\n  ]\n)\n```\n\nThen build to pull down the dependencies:\n\n```Bash\n$ swift build\n```\n\n### ...using Xcode\n\nUse the Swift Packages tab on the project to add TestKit:\n\n1. Open the Xcode workspace or project that you want to add TestKit to\n1. In the file browser, select the project to show the list of projects/targets on the right\n1. In the list of projects/targets on the right, select the project\n1. Select the \"Swift Packages\" tab\n1. Click on the \"+\" button to add a package\n1. In the \"Choose Package Repository\" sheet, search for  \"https://github.com/andyfinnell/TestKit.git\"\n1. Click \"Next\"\n1. Choose the version rule you want\n1. Click \"Next\"\n1. Choose the target you want to add TestKit to\n1. Click \"Finish\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyfinnell%2Ftestkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyfinnell%2Ftestkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyfinnell%2Ftestkit/lists"}