{"id":2087,"url":"https://github.com/gh-unit/gh-unit","last_synced_at":"2025-09-28T23:31:58.402Z","repository":{"id":485605,"uuid":"111558","full_name":"gh-unit/gh-unit","owner":"gh-unit","description":"DEPRECATED Test Framework for Objective-C","archived":true,"fork":false,"pushed_at":"2016-08-09T17:01:13.000Z","size":68763,"stargazers_count":1860,"open_issues_count":6,"forks_count":309,"subscribers_count":77,"default_branch":"master","last_synced_at":"2024-10-29T20:02:05.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gh-unit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-01-21T04:42:01.000Z","updated_at":"2024-10-22T13:39:44.000Z","dependencies_parsed_at":"2022-07-07T14:03:34.932Z","dependency_job_id":null,"html_url":"https://github.com/gh-unit/gh-unit","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-unit%2Fgh-unit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-unit%2Fgh-unit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-unit%2Fgh-unit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-unit%2Fgh-unit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh-unit","download_url":"https://codeload.github.com/gh-unit/gh-unit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234575211,"owners_count":18854924,"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":[],"created_at":"2024-01-05T20:16:03.187Z","updated_at":"2025-09-28T23:31:51.979Z","avatar_url":"https://github.com/gh-unit.png","language":"Objective-C","readme":"# GHUnit [![Maintained](https://img.shields.io/badge/Maintained-NO-red.svg)](https://github.com/gh-unit/gh-unit) [![Build Status](https://travis-ci.org/gh-unit/gh-unit.png)](https://travis-ci.org/gh-unit/gh-unit) [![Cocoa Pod](https://cocoapod-badges.herokuapp.com/v/GHUnit/badge.png)](http://gh-unit.github.io/gh-unit/) [![Cocoa Pod](https://cocoapod-badges.herokuapp.com/p/GHUnit/badge.png)](http://gh-unit.github.io/gh-unit/) [![License](https://img.shields.io/github/license/gh-unit/gh-unit.svg)](http://opensource.org/licenses/MIT)\n\n## GHUnit is deprecated and not actively maintained! Use `XCTest` instead.\n\nGHUnit is a test framework for Mac OS X and iOS.\nIt can be used standalone or with other testing frameworks like SenTestingKit or GTM.\n\nIf you need support for asynchronous tests you might want to check out [GRUnit](https://github.com/gabriel/GRUnit) which is a recent fork of this project.\n\n## Features\n\n- Run tests, breakpoint and interact directly with the Xcode Debugger.\n- Run from the command line or via a Makefile.\n- Run tests in parallel.\n- Allow testing of UI components.\n- Capture and display test metrics.\n- Search and filter tests by keywords.\n- View logging by test case.\n- Show stack traces and useful debugging information.\n- Include as a framework in your projects\n- Determine whether views have changed (UI verification)\n- Quickly approve and record view changes\n- View image diff to see where views have changed\n\n## Install (iOS)\n\n### Install the GHUnit gem\n\n```xml\n$ gem install ghunit\n```\n\n### Install the Tests target\n\nThis will edit your ProjectName.xcodeproj file and create a Tests target, scheme, and a sample test file.\n\n```xml\n$ ghunit install -n ProjectName\n```\n\n### Add the Tests target to your Podfile\n\nCreate a new file named `Podfile` in the directory that contains the your `.xcodeproj` file, or edit it if it already exists.\n\n```ruby\n# Podfile\nplatform :ios, '6.0'\n\ntarget :Tests do\n\tpod 'GHUnit', '~\u003e 0.5.9'\nend\n```\n\nInstall your project's pods. CocoaPods will then download and configure the required libraries for your project:\n```xml\n$ pod install\n```\n\nNote: If you don't have a Tests target in your project, you will get an error: \"[!] Unable to find a target named Tests\". If you named your test target something different, such as \"ProjectTests\" then the Podfile target line should look like: `target :ProjectTests do` instead.\n\nYou should use the `.xcworkspace` file to work on your project:\n```xml\n$ open ProjectName.xcworkspace\n```\n\n### Install Command Line\n\n```xml\n$ ghunit install_cli -n ProjectName\n```\n\nInstall ios-sim using homebrew:\n\n```xml\n$ brew install ios-sim\n```\n\nNow you can run tests from the command line:\n\n```xml\n$ ghunit run -n ProjectName\n```\n\n### Add a test\n\nTo generate a test in your test target with name SampleTest:\n\n```xml\n$ ghunit add -n ProjectName -f SampleTest\n```\n\n\n## Install (From Source)\n\n### iOS\n```bash\ncd Project-iOS \u0026\u0026 make\n```\n\nAdd the `GHUnitIOS.framework` to your project\n\n### OS X\n```bash\ncd Project-MacOSX \u0026\u0026 make\n```\nAdd the `GHUnit.framework` to your project\n\n## Documentation\n\n- [How to install, create and run tests](http://gh-unit.github.io/gh-unit/docs/index.html)\n- [Online documentation](http://gh-unit.github.io/gh-unit/)\n- [Google Group (Deprecated - Use Github Issues instead)](http://groups.google.com/group/ghunit)\n\n## iOS\n\n![GHUnit-IPhone-0.5.8](https://raw.github.com/gh-unit/gh-unit/master/Documentation/images/ios.png)\n\n## Mac OS X\n\n![GHUnit-0.5.8](https://raw.github.com/gh-unit/gh-unit/master/Documentation/images/macosx01.png)\n\n","funding_links":[],"categories":["Testing","Objective-C","Objective-C  Stars 1000以内排名整理","etc"],"sub_categories":["TDD / BDD","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-unit%2Fgh-unit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh-unit%2Fgh-unit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-unit%2Fgh-unit/lists"}