{"id":19065280,"url":"https://github.com/assertwell/wp-core-test-framework","last_synced_at":"2025-04-28T11:27:02.715Z","repository":{"id":43881484,"uuid":"243355717","full_name":"assertwell/wp-core-test-framework","owner":"assertwell","description":"Streamline testing WordPress plugins and themes using the WordPress core test framework","archived":false,"fork":false,"pushed_at":"2023-02-19T17:26:01.000Z","size":22,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2024-05-20T15:56:40.332Z","etag":null,"topics":["composer-package","testing-tools","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/assertwell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/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-02-26T20:10:57.000Z","updated_at":"2024-06-19T23:19:37.847Z","dependencies_parsed_at":"2024-06-19T23:29:32.138Z","dependency_job_id":null,"html_url":"https://github.com/assertwell/wp-core-test-framework","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.23076923076923073","last_synced_commit":"04ae5f6e29a151e09559eeeed46e6c3cffea335f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertwell%2Fwp-core-test-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertwell%2Fwp-core-test-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertwell%2Fwp-core-test-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertwell%2Fwp-core-test-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assertwell","download_url":"https://codeload.github.com/assertwell/wp-core-test-framework/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249420375,"owners_count":21268835,"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":["composer-package","testing-tools","wordpress"],"created_at":"2024-11-09T00:49:19.003Z","updated_at":"2025-04-18T03:32:30.554Z","avatar_url":"https://github.com/assertwell.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Core Test Framework\n\n[![License: MIT](https://img.shields.io/github/license/assertwell/wp-core-test-framework)](LICENSE.md)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md) \n\nThis package helps reduce duplication across WordPress plugins and themes by enabling common test scaffolding to be provided [via Composer](https://getcomposer.org/).\n\n## Installation\n\nTo install the WordPress core test framework into your plugin or theme, install this package as a Composer dependency:\n\n```sh\n$ composer require --dev assertwell/wp-core-test-framework\n```\n\n## Usage\n\n### Replacing the default `bin/install-wp-tests.sh` file\n\nWhen [scaffolding a new WordPress plugin or theme via WP-CLI](https://developer.wordpress.org/cli/commands/scaffold/), the generator will [create a shell script at `bin/install-wp-tests.sh`](https://github.com/wp-cli/scaffold-command/blob/master/templates/install-wp-tests.sh).\n\nThis file is meant to [create an instance of the WordPress core development repository](https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/), which includes the WordPress core testing framework.\n\nIn many cases, this shell script is never modified, and is often the only file present in the `bin/` directory. Rather than copying and pasting this file across a bunch of repositories, `install-wp-tests.sh` is provided as a vendor binary by this package.\n\nTo use it, find anywhere you're currently (or would be) referencing `bin/install-wp-tests.sh` and replace it with `vendor/bin/install-wp-tests.sh`.\n\n```diff\n# .travis.yml\n\n  install:\n      - composer install --prefer-dist --no-interaction\n-     - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION\n+     - bash vendor/bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION\n```\n\nIf your project already contains a `bin/install-wp-tests.sh` file, you may delete it from your repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassertwell%2Fwp-core-test-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassertwell%2Fwp-core-test-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassertwell%2Fwp-core-test-framework/lists"}