From 6499620e38f7f0279f480b4c61986abf175ff30c Mon Sep 17 00:00:00 2001 From: Vladimir Bryzgalov Date: Sun, 17 May 2026 00:11:32 +0500 Subject: [PATCH] docs(wpmc S6): README Testing section + mark S6 done in roadmap Co-Authored-By: Claude Sonnet 4.6 --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1af132f..8d7832a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,25 @@ 1. Скачать архив или склонировать в `wp-content/plugins/wp-multi-city/`. 2. Активировать в админке WP. Если ACF Pro не активен — увидите admin-notice об ошибке зависимости. +## Testing + +### Automated (PHPUnit) + +```bash +composer install +vendor/bin/phpunit +``` + +Expected: 98 tests, 175 assertions green. Unit-level coverage via Brain Monkey + Mockery + Patchwork — no real WordPress required; the full suite runs in under one second. + +### Manual QA + +For end-to-end verification against a real WordPress installation, see `docs/QA-CHECKLIST.md` — 13 sections covering activation, admin UI, helpers, shortcode, router, page clones, URL filters, REST URL. + +### CI + +`.gitea/workflows/test.yml` runs PHPUnit on every push to `main` and every pull request. The workflow becomes active once the repo is mirrored to Gitea (S7). + ## Roadmap MVP | Этап | Содержание | Beads | Статус | @@ -24,7 +43,7 @@ | S3 | `[shortcode_dmr id=N]` + хелперы (`current_town`, `_alt_get_field`, `remove_domain_link`) | cp-arq | done | | S4 | URL-роутер `/{city}/{path}/` + `page_unic` + `main_page_alt` | cp-83m | done | | S5 | Фильтры `the_title`/`the_content`/`the_permalink`/`rest_url` | cp-i17 | done | -| S6 | PHPUnit-тесты | cp-la7 | open | +| S6 | PHPUnit-тесты | cp-la7 | done | | S7 | Релиз через Gitea + plugin-update-checker | cp-7cf | open | Эпик: `cp-cw4`.