{"id":15305032,"url":"https://github.com/nicnocquee/practical-ios-testing","last_synced_at":"2026-02-11T17:33:07.363Z","repository":{"id":138626259,"uuid":"85352487","full_name":"nicnocquee/practical-ios-testing","owner":"nicnocquee","description":"This repo showcases some examples of testing code in iOS.","archived":false,"fork":false,"pushed_at":"2017-04-12T12:24:16.000Z","size":1488,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T21:07:49.857Z","etag":null,"topics":["ios","objective-c","ocmock","swift","tutorial","unit-testing","xctest"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicnocquee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-03-17T20:35:12.000Z","updated_at":"2023-12-10T16:40:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"0984d4d5-8823-4c19-8623-de7f4d30bafe","html_url":"https://github.com/nicnocquee/practical-ios-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fpractical-ios-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fpractical-ios-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fpractical-ios-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicnocquee%2Fpractical-ios-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicnocquee","download_url":"https://codeload.github.com/nicnocquee/practical-ios-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245892252,"owners_count":20689467,"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":["ios","objective-c","ocmock","swift","tutorial","unit-testing","xctest"],"created_at":"2024-10-01T07:58:47.833Z","updated_at":"2026-02-11T17:33:02.318Z","avatar_url":"https://github.com/nicnocquee.png","language":"Objective-C","readme":"[![Coverage Status](https://coveralls.io/repos/github/nicnocquee/practical-ios-testing/badge.svg?branch=master)](https://coveralls.io/github/nicnocquee/practical-ios-testing?branch=master)\n[![Build Status](https://travis-ci.org/nicnocquee/practical-ios-testing.svg?branch=master)](https://travis-ci.org/nicnocquee/practical-ios-testing)\n\nThis repo showcases some examples of testing code in iOS. \n\n## Objective-C\n\n### Getting Started\n\n- Check out [objc.md](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md) and the accompanying sample project in `objc` folder.\n- Run `bundle install \u0026\u0026 cd objc/PracticaliOSTesting \u0026\u0026 bundle exec pod install` from the root of the repository.\n- Run the unit tests `PracticaliOSTestingTests` using iPhone 7 Plus simulator.\n\n### TOC\n\n- [Mock singleton using OCMock](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md#mock-singleton-using-ocmock)\n- [Test asynchronous callback](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md#test-asynchronous-callback)\n- [Test block property invocation](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md#test-block-property-invocation)\n- [Test instance method invocation inside another instance method](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md#test-mocking-an-instance-inside-a-method)\n- [Test custom UIView with snapshot testing](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md#test-custom-uiview-with-snapshot-testing)\n- [Test custom UITableViewCell](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md#test-custom-uitableviewcell)\n- [Test View Controller's view](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md#test-view-controllers-view)\n- [Test invocation of third party library](https://github.com/nicnocquee/practical-ios-testing/blob/master/objc.md#test-invocation-of-third-party-library)\n\n## Swift\n\nNot yet implemented. Contribution appreciated.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicnocquee%2Fpractical-ios-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicnocquee%2Fpractical-ios-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicnocquee%2Fpractical-ios-testing/lists"}