{"id":15008351,"url":"https://github.com/wp-graphql/wp-graphql-testcase","last_synced_at":"2025-08-17T11:06:15.418Z","repository":{"id":39795685,"uuid":"290311403","full_name":"wp-graphql/wp-graphql-testcase","owner":"wp-graphql","description":"WPGraphQL API Unit Testing Library supports WP-PHPUnit(PHPUnit) and WPBrowser(Codeception)","archived":false,"fork":false,"pushed_at":"2024-08-08T18:50:11.000Z","size":188,"stargazers_count":9,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-08-08T11:32:17.551Z","etag":null,"topics":["codeception","phpunit","wordpress","wpbrowser","wpgraphql"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/wp-graphql.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-08-25T20:01:36.000Z","updated_at":"2024-12-30T06:38:06.000Z","dependencies_parsed_at":"2024-11-06T06:47:15.182Z","dependency_job_id":null,"html_url":"https://github.com/wp-graphql/wp-graphql-testcase","commit_stats":{"total_commits":164,"total_committers":7,"mean_commits":"23.428571428571427","dds":0.5,"last_synced_commit":"572d4c51e9a0a33ec1b99970155fe005f468f4ec"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/wp-graphql/wp-graphql-testcase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-testcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-testcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-testcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-testcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-graphql","download_url":"https://codeload.github.com/wp-graphql/wp-graphql-testcase/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-testcase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270837583,"owners_count":24654391,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["codeception","phpunit","wordpress","wpbrowser","wpgraphql"],"created_at":"2024-09-24T19:17:46.118Z","updated_at":"2025-08-17T11:06:15.384Z","avatar_url":"https://github.com/wp-graphql.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPGraphQL TestCase\n\n![continuous_integration](https://github.com/wp-graphql/wp-graphql-testcase/workflows/continuous_integration/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/wp-graphql/wp-graphql-testcase/badge.svg)](https://coveralls.io/github/wp-graphql/wp-graphql-testcase)\n\nIs a library of tools for testing WPGraphQL APIs, designed for both WPGraphQL\nand WPGraphQL extension development. Currently the library only consisted of a\nCodeception Testcase built on top wp-browser's WPTestCase class.\n\n## Installing\n\n1. Run `composer require wp-graphql/wp-graphql-testcase` from your project\n   directory in the terminal.\n\n## Codeception Only\n\n1. If your didn't already have codeception installed in the project, run\n   `vendor/bin/codecept init wpbrowser`.\n2. To make a test case generate a with\n   `vendor/bin/codecept generate:wpunit wpunit TestName`. Then just change the\n   extending class to `\\Tests\\WPGraphQL\\TestCase\\WPGraphQLTestCase`\n   :man_shrugging:\n\n## Going Forward\n\nThere are plans to add more to this library, and contribution are greatly\nappreciated :pray:.\n\n## Contributing\n\nTo contribute, fork this repository and open a PR with your requested changes\nback into the main repository.\n\n### Local Development\n\nTo develop locally, you need to have Docker and Composer installed.\n\n#### Composer Setup\n\nTo ensure you have the necessary local dependencies, first run\n`composer install`.\n\n#### Docker Setup\n\nThis project currently uses a `docker-compose.yml` v2 file. To spin this up, run\n`docker-compose up -d`.\n\n#### Local Tests\n\nTo run the local tests, use `composer run-phpunit` or\n`composer run-codeception`. You should see the tests pass with output generated\nin the terminal.\n\n#### Test Coverage\n\nThe CI process uses [coveralls.io](https://coveralls.io/) to store coverage\nreports. This is available for free for open-source projects, and is required to\nrun the CI process. Sign up for free and add your `COVERALLS_REPO_TOKEN` value\nto GitHub Actions secrets.\n\n## Contributors\n\n\u003cp float=\"left\"\u003e\n\u003ca href=\"https://github.com/kidunot89\"\u003e\u003cimg src=\"https://github.com/kidunot89.png?size=80\" title=\"kidunot89\" width=\"80\" height=\"80\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/missionmike\"\u003e\u003cimg src=\"https://github.com/missionmike.png?size=80\" title=\"missionmike\" width=\"80\" height=\"80\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-graphql%2Fwp-graphql-testcase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-graphql%2Fwp-graphql-testcase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-graphql%2Fwp-graphql-testcase/lists"}