{"id":16685281,"url":"https://github.com/lvnkmn/quickgwt","last_synced_at":"2026-04-27T14:32:09.734Z","repository":{"id":62451716,"uuid":"135072129","full_name":"lvnkmn/QuickGWT","owner":"lvnkmn","description":"Simply adds Given When and Then to Quick.","archived":false,"fork":false,"pushed_at":"2019-05-07T14:38:31.000Z","size":276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-01-20T09:32:13.698Z","etag":null,"topics":["bdd","cucumber","gherkin","given","quick","swift","then","when"],"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/lvnkmn.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-05-27T18:37:10.000Z","updated_at":"2022-09-14T12:55:14.000Z","dependencies_parsed_at":"2022-11-01T22:32:01.508Z","dependency_job_id":null,"html_url":"https://github.com/lvnkmn/QuickGWT","commit_stats":null,"previous_names":["mennolovink/quickgwt"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvnkmn%2FQuickGWT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvnkmn%2FQuickGWT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvnkmn%2FQuickGWT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvnkmn%2FQuickGWT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvnkmn","download_url":"https://codeload.github.com/lvnkmn/QuickGWT/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243417238,"owners_count":20287590,"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","cucumber","gherkin","given","quick","swift","then","when"],"created_at":"2024-10-12T14:46:43.550Z","updated_at":"2025-12-28T14:36:01.348Z","avatar_url":"https://github.com/lvnkmn.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuickGWT\n\n [![Version](http://img.shields.io/cocoapods/v/QuickGWT.svg?style=flat)](http://cocoapods.org/pods/Zoomy) [![Platform](http://img.shields.io/cocoapods/p/QuickGWT.svg?style=flat)](http://cocoapods.org/pods/Zoomy) [![License](http://img.shields.io/cocoapods/l/QuickGWT.svg?style=flat)](LICENSE)\n\n## Example\n\nTo see the example project, run the following in your terminal:\n\n`pod try QuickGWT `\n\n## Setup\n\nJust add:\n\n```Swift\nimport QuickGWT\n```\n\nto the files where you'd like to use `given`, `when` and `then`.\n\n## Usage\n\nConsidering you're already using Quick and Nimble:\n\n```Swift\ngiven(\"A viewController\") {\n\t\n    var sut: ViewController!\n\t\n    beforeEach {\n        sut = ViewController()\n    }\n\t\n    when(\"viewDidLoad\") {\n\n        beforeEach {\n            sut.viewDidLoad()\n        }\n\n        then(\"title is set\") {\n            expect(sut.title).to(equal(\"Expected Title\"))\n        }\n\n        then(\"backgroundColor is set\") {\n            expect(sut.view.backgroundColor).to(equal(UIColor.white))\n        }\n    }\n}\n```\nThe test results will look like this:\n![Test results](Art/TestResults.png)\n\n## Some background\n\n* All this lib contains is four functions\n\t* You can see them [here](https://github.com/mennolovink/QuickGWT/blob/develop/QuickGWT/Classes/GivenWhenThen.swift)\n\t\t* `given` is an alternative to Quick's `describe` function\n\t\t* `when` is an alternative to Quick's `context` function\n\t\t* `and` is (also) an alternative to Quick's `context` function\n\t\t* `then` is an alternative to Quick's `it` function\n* You can always mix up these added functions with Quick's existing `describe`, `context` and `it` functions\n\n## Installation\n### CocoaPods\nQuickGWT is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'QuickGWT'\n```\nYou'd propably going to want this in your test target(s) only.\n\n### Adding the code manually\nConsidering the meat of this lib is only one file containing 4 functions, you could also just copy over [GivenWhenThen.swift](https://github.com/mennolovink/QuickGWT/blob/develop/QuickGWT/Classes/GivenWhenThen.swift) to your project/workspace. Don't forget to make sure the file is part of your test target(s).\n\n## License\n\nQuickGWT is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvnkmn%2Fquickgwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvnkmn%2Fquickgwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvnkmn%2Fquickgwt/lists"}