{"id":13614324,"url":"https://github.com/Behatch/contexts","last_synced_at":"2025-04-13T18:32:55.213Z","repository":{"id":3025683,"uuid":"4045584","full_name":"Behatch/contexts","owner":"Behatch","description":"Behat extension with most custom helper steps","archived":true,"fork":false,"pushed_at":"2024-02-03T11:14:52.000Z","size":846,"stargazers_count":393,"open_issues_count":55,"forks_count":203,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-29T20:55:57.806Z","etag":null,"topics":["behat-contexts","behat-extension"],"latest_commit_sha":null,"homepage":"","language":"Gherkin","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/Behatch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2012-04-16T21:01:02.000Z","updated_at":"2024-10-01T15:19:23.000Z","dependencies_parsed_at":"2024-06-18T10:57:29.487Z","dependency_job_id":null,"html_url":"https://github.com/Behatch/contexts","commit_stats":{"total_commits":484,"total_committers":70,"mean_commits":6.914285714285715,"dds":0.3367768595041323,"last_synced_commit":"78b29a40a8841eb435bb1790aac02efc2c480e48"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Behatch%2Fcontexts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Behatch%2Fcontexts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Behatch%2Fcontexts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Behatch%2Fcontexts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Behatch","download_url":"https://codeload.github.com/Behatch/contexts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223600247,"owners_count":17171615,"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":["behat-contexts","behat-extension"],"created_at":"2024-08-01T20:01:00.019Z","updated_at":"2024-11-07T22:31:14.306Z","avatar_url":"https://github.com/Behatch.png","language":"Gherkin","readme":"Behatch contexts\n================\n\n[![Build status](https://travis-ci.org/Behatch/contexts.svg?branch=master)](https://travis-ci.org/Behatch/contexts)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Behatch/contexts/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Behatch/contexts/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/Behatch/contexts/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Behatch/contexts/?branch=master)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/ed08ea06-93c2-4b90-b65b-4364302b5108/mini.png)](https://insight.sensiolabs.com/projects/ed08ea06-93c2-4b90-b65b-4364302b5108)\n\nBehatch contexts provide most common Behat tests.\n\nInstallation\n------------\n\nThis extension requires:\n\n* Behat 3+\n* Mink\n* Mink extension\n\n### Project dependency\n\n1. [Install Composer](https://getcomposer.org/download/)\n2. Require the package with Composer:\n\n```\n$ composer require --dev behatch/contexts\n```\n\n3. Activate extension by specifying its class in your `behat.yml`:\n\n```yaml\n# behat.yml\ndefault:\n    # ...\n    extensions:\n        Behatch\\Extension: ~\n```\n\n### Project bootstraping\n\n1. Download the Behatch skeleton with composer:\n\n```\n$ php composer.phar create-project behatch/skeleton\n```\n\nBrowser, json, table and rest step need a mink configuration, see [Mink\nextension](https://github.com/Behat/MinkExtension) for more information.\n\nUsage\n-----\n\nIn `behat.yml`, enable desired contexts:\n\n```yaml\ndefault:\n    suites:\n        default:\n            contexts:\n                - behatch:context:browser\n                - behatch:context:debug\n                - behatch:context:system\n                - behatch:context:json\n                - behatch:context:table\n                - behatch:context:rest\n                - behatch:context:xml\n```\n\n### Examples\n\nThis project is self-tested, you can explore the [features\ndirectory](./tests/features) to find some examples.\n\nConfiguration\n-------------\n\n* `browser` - more browser related steps (like mink)\n    * `timeout` - default timeout\n* `debug` - helper steps for debugging\n    * `screenshotDir` - the directory where store screenshots\n* `system` - shell related steps\n    * `root` - the root directory of the filesystem\n* `json` - JSON related steps\n    * `evaluationMode` - javascript \"foo.bar\" or php \"foo-\u003ebar\"\n* `table` - play with HTML the tables\n* `rest` - send GET, POST, ... requests and test the HTTP headers\n* `xml` - XML related steps\n\n### Configuration Example\n\nFor example, if you want to change default directory to screenshots - you can do it this way:\n\n```yaml\ndefault:\n    suites:\n        default:\n            contexts:\n                - behatch:context:debug:\n                    screenshotDir: \"var\"\n```\n\nTranslation\n-----------\n\n[![See more information on Transifex.com](https://www.transifex.com/projects/p/behatch-contexts/resource/enxliff/chart/image_png)](https://www.transifex.com/projects/p/behatch-contexts/)\n","funding_links":[],"categories":["Gherkin"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBehatch%2Fcontexts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBehatch%2Fcontexts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBehatch%2Fcontexts/lists"}