{"id":13520414,"url":"https://github.com/alexmx/Combinations","last_synced_at":"2025-03-31T16:31:25.901Z","repository":{"id":56906344,"uuid":"61115851","full_name":"alexmx/Combinations","owner":"alexmx","description":"A blazingly fast runtime test generator suited for boundary testing.","archived":true,"fork":false,"pushed_at":"2017-10-11T09:31:54.000Z","size":5156,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T23:54:30.014Z","etag":null,"topics":["brute-force","ios","testing","ui-testing","unit-testing","xctest"],"latest_commit_sha":null,"homepage":"http://alexmx.github.io/Combinations","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/alexmx.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":"2016-06-14T11:03:08.000Z","updated_at":"2023-03-14T09:53:58.000Z","dependencies_parsed_at":"2022-08-21T03:20:50.404Z","dependency_job_id":null,"html_url":"https://github.com/alexmx/Combinations","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmx%2FCombinations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmx%2FCombinations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmx%2FCombinations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmx%2FCombinations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexmx","download_url":"https://codeload.github.com/alexmx/Combinations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222440073,"owners_count":16984889,"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":["brute-force","ios","testing","ui-testing","unit-testing","xctest"],"created_at":"2024-08-01T05:02:19.968Z","updated_at":"2024-11-02T03:31:30.348Z","avatar_url":"https://github.com/alexmx.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# Combinations\n\n[![Twitter: @amaimescu](https://img.shields.io/badge/contact-%40amaimescu-blue.svg)](https://twitter.com/amaimescu)\n[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/alexmx/ios-ui-automation-overview/blob/master/LICENSE)\n\n**Combinations** is an iOS testing utility framework suited for fast **boundary testing**. \n\n\u003e **Boundary testing** or **boundary value analysis**, is where test cases are generated using the extremes of the input domain, e.g. maximum, minimum, just inside/outside boundaries, typical values, and error values. It is similar to Equivalence Partitioning but focuses on \"corner cases\".\n\nThe framework does just two simple things:\n\n1. Generate a set of combinations from test data input set;\n2. Generate a run-time unit or UI test for each of the combinations;\n\nCheck out the [API reference](http://alexmx.github.io/Combinations/) for more information.\n\n#### Simple example:\nWe have an input form with four fields: `First Name`, `Email`, `Password` and `Gender`.\n\n\u003cimg src=\"/assets/form.png\" width=\"300\" /\u003e\n\nWe also have our testing boundary values defined for each field:\n* First Name: `John Smith`, `empty string`\n* Email: `john.smith@example.com`, `john.smith@`, `empty string`\n* Password: `12345`, `~@#123ABC`, `empty string`\n* Gender: `Male`, `Female`\n\n**Combinations** gets a set of input test data values and transforms it in **run-time tests for each generated combination of values**.\n\nSo for our example the combinations will be: \n* [`John Smith`, `john.smith@example.com`, `12345`, `Male`]\n* [`John Smith`, `john.smith@example.com`, `12345`, `Female`]\n* [`John Smith`, `john.smith@example.com`, `~@#123ABC`, `Male`]\n* [`John Smith`, `john.smith@example.com`, `~@#123ABC`, `Female`]\n* etc.\n\nFor each of this combinations will be generated a test (`XCTestCase`)\n\nA running example of the UI Tests generated by Combinations:\n\n![Combinations](/assets/ui-tests-example.gif)\n\n## Installation\n\n#### Carthage\n\nIf you are using **Carthage**, you can always use it to build the library within your workspace by adding the line below to your `Cartfile`.\n\n```\ngithub \"alexmx/Combinations\"\n```\n\n#### CocoaPods\n\nIf you are using **CocoaPods**, you can as well use it to integrate the library by adding the following lines to your `Podfile`.\n\n```ruby\nplatform :ios, '8.0'\nuse_frameworks!\n\ntarget 'YourAppTarget' do\n    pod \"Combinations\"\nend\n\n```\n\n#### Manual installation\n\nIn order to include the **Combinations** library into your project, you need to build a dynamic framework from provided source code and include it into your project, or inlcude the entire **Combinations** library as sub-project by copying it to your project directory or include as Git submodule.\n\n## Usage\n\nThe library requires just two methods to be overriden: `valuesForCombinations` and `assertCombination:`\n\n```swift\nimport XCTest\nimport Combinations\n\nclass MyTests: CombinationsSpec {\n    \n    override func setUp() {\n        super.setUp()\n    }\n    \n    // Provide input values for Combinations\n    override class func valuesForCombinations() -\u003e [[Any]]? {\n        return [\n            [1, 2, 3, 4],\n            [\"John Smith\", \"John\", \"\"]\n        ]\n    }\n    \n    // This method will be called for each generated combination:\n    // [1, \"John Smith\"], [1, \"John\"], [1, \"\"], [2, \"John Smith\"], etc.\n    override func assertCombination(_ combination: [Any]) {\n        \n        // Perform required asserts on combination\n    }\n}\n```\n\n## License\nThis project is licensed under the terms of the MIT license. See the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmx%2FCombinations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexmx%2FCombinations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmx%2FCombinations/lists"}