{"id":15371655,"url":"https://github.com/joshcanhelp/wp-test-plugin","last_synced_at":"2025-08-08T17:41:40.088Z","repository":{"id":55084957,"uuid":"291321748","full_name":"joshcanhelp/wp-test-plugin","owner":"joshcanhelp","description":"WordPress plugin to describe a running test test suite","archived":false,"fork":false,"pushed_at":"2025-02-03T16:40:25.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T11:58:47.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshcanhelp.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":"2020-08-29T17:55:51.000Z","updated_at":"2025-02-03T16:40:29.000Z","dependencies_parsed_at":"2022-08-14T11:31:08.990Z","dependency_job_id":null,"html_url":"https://github.com/joshcanhelp/wp-test-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshcanhelp%2Fwp-test-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshcanhelp%2Fwp-test-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshcanhelp%2Fwp-test-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshcanhelp%2Fwp-test-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshcanhelp","download_url":"https://codeload.github.com/joshcanhelp/wp-test-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238324689,"owners_count":19453140,"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-10-01T13:48:22.227Z","updated_at":"2025-02-11T15:58:02.310Z","avatar_url":"https://github.com/joshcanhelp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Test Plugin\n\nThis is an installable sample plugin for showing running tests in a WordPress environment. See [the introduction post](https://www.joshcanhelp.com/wordpress-unit-testing-techniques/) for more details about how this is used.\n\n## Getting Started\n\nThe purpose of this plugin is to show example tests against functional code. I used the [WP-CLI unit test helper](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/) to generate what I needed and made changes from there. \n\nIn order to run tests, you'll need a locally running database server (I used Brew for this following [this guide](https://getgrav.org/blog/macos-catalina-apache-mysql-vhost-apc)). Using WP-CLI link above, look for the command `bin/install-wp-tests.sh` and follow the instructions to get the environment up and running. I **always** have issues getting this running from the start so give yourself some time (and grace) if it's your first time through the process!\n\nOnce that's working, the rest is Composer:\n\n```bash\n$ composer install\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\nInstalling lots of stuff ...\n\n$ composer test\n\u003e \"vendor/bin/phpunit\"\n\n.......................                                           23 / 23 (100%)\n\nTime: 1.02 seconds, Memory: 28.00 MB\n\nOK (23 tests, 74 assertions)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshcanhelp%2Fwp-test-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshcanhelp%2Fwp-test-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshcanhelp%2Fwp-test-plugin/lists"}