{"id":50216379,"url":"https://github.com/rogerchappel/plugtestkit","last_synced_at":"2026-05-26T09:04:35.271Z","repository":{"id":355931249,"uuid":"1230262273","full_name":"rogerchappel/plugtestkit","owner":"rogerchappel","description":"Local-first WordPress plugin test harness generator with PHPUnit, PHPCS, and CI templates.","archived":false,"fork":false,"pushed_at":"2026-05-05T22:02:12.000Z","size":52,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-05T23:25:07.917Z","etag":null,"topics":["ci","cli","local-first","phpcs","phpunit","testing","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/rogerchappel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-05T20:41:03.000Z","updated_at":"2026-05-05T21:29:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rogerchappel/plugtestkit","commit_stats":null,"previous_names":["rogerchappel/plugtestkit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rogerchappel/plugtestkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fplugtestkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fplugtestkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fplugtestkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fplugtestkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogerchappel","download_url":"https://codeload.github.com/rogerchappel/plugtestkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fplugtestkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33512346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ci","cli","local-first","phpcs","phpunit","testing","wordpress","wordpress-plugin"],"created_at":"2026-05-26T09:04:19.127Z","updated_at":"2026-05-26T09:04:35.254Z","avatar_url":"https://github.com/rogerchappel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plugtestkit\n\nLocal-first WordPress plugin test harness generator with PHPUnit, PHPCS, and CI templates for maintainers.\n\nplugtestkit helps a maintainer or coding agent inspect a plugin fixture, validate a practical PHP/WordPress matrix, and generate a starter test harness without network calls or publishing side effects.\n\nThe personality is intentionally calm and slightly stubborn: inspect first, generate deterministic files, leave dependency installs and external systems to the human. It is scaffolding with receipts, not magic.\n\n## Status\n\nEarly MVP. The generated files are intended as reviewable starting points, not a complete WordPress integration environment.\n\n## Install\n\n```sh\nnpm install -g plugtestkit\n```\n\nFor local development from this repository:\n\n```sh\nnpm install\nnode bin/plugtestkit.js --help\n```\n\n## Quickstart\n\nInspect a plugin fixture:\n\n```sh\nplugtestkit inspect fixtures/sample-plugin\n```\n\nWrite JSON for an agent or CI step:\n\n```sh\nplugtestkit inspect fixtures/sample-plugin --json --output out/report.json\n```\n\nGenerate a harness into an explicit directory:\n\n```sh\nplugtestkit scaffold fixtures/sample-plugin --output out/harness\n```\n\nDry-run the scaffold plan:\n\n```sh\nplugtestkit scaffold fixtures/sample-plugin --dry-run\n```\n\nUse the JavaScript API in a local automation script:\n\n```js\nimport { inspectPlugin, planScaffold } from 'plugtestkit';\n\nconst inspection = await inspectPlugin('fixtures/sample-plugin');\nconst plan = await planScaffold('fixtures/sample-plugin');\n\nconsole.log(inspection.ok, plan.files.map((file) =\u003e file.path));\n```\n\n## What it generates\n\n- `composer.json` with PHPUnit and WordPress Coding Standards dev dependencies.\n- `phpunit.xml.dist`.\n- `phpcs.xml.dist`.\n- `tests/bootstrap.php`.\n- `tests/PluginSmokeTest.php`.\n- `.github/workflows/plugin-tests.yml` with a PHP/WordPress matrix.\n\n## Safety boundaries\n\nplugtestkit is deliberately boring and local:\n\n- Reads only the plugin directory you pass in.\n- Writes only to explicit `--output` paths.\n- Performs no network calls, telemetry, credential lookup, package publishing, or WordPress.org API calls.\n- Leaves dependency installation to you.\n\nSee [docs/SAFETY.md](docs/SAFETY.md) for details.\n\n## Documentation\n\n- [CLI reference](docs/CLI.md)\n- [JavaScript API](docs/API.md)\n- [Generated templates](docs/TEMPLATES.md)\n- [Examples](examples/scaffold.md)\n- [Product requirements](docs/PRD.md)\n\n## Verify\n\n```sh\nnpm test\nnpm run check\nnpm run build\nnpm run smoke\nbash scripts/validate.sh\n```\n\n## Attribution\n\nThis project was inspired by the existence of `wordpress-test-template` style tooling and the public repo signal documented in [docs/PRD.md](docs/PRD.md). It is a fresh implementation with a local-first scope and does not copy that project's name or implementation.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md). Small, fixture-backed changes are preferred.\n\n## Security\n\nSee [SECURITY.md](SECURITY.md). Please do not post vulnerability details in public issues.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Fplugtestkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogerchappel%2Fplugtestkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Fplugtestkit/lists"}