From dde9a92ae9051d102575a44152921a5be6821439 Mon Sep 17 00:00:00 2001 From: Stanislav Jakuschevskij Date: Tue, 1 Sep 2026 17:31:05 +0200 Subject: [PATCH] docs: update TESTING.md and AGILE.md TESTING.md was out of date after the SRVOCF-822 test infrastructure refactoring (PRs #144, #149, #155). The doc still described mocking components and hooks with vi.mock, referenced deleted files (testing/msw/, mocks/github.ts), and used "mock" as a catch-all term for all test doubles. Restructure the doc around how we actually test now: page tests render real components and hooks, replacing only external boundaries (backend API via MSW, OCP SDK via self-written stubs). Add a cross-cutting terminology table (stub, fake, mock, spy) with examples from both frontend and backend. Document the shared test infrastructure in src/common/testing/ and the backend stubs next to their interfaces. Remove the component mocking examples and state that mocking components or hooks is a design issue. Update the e2e section to reflect the fake GitHub server, new helpers, and removed page.route patterns. AGILE.md sync ceremonies replaced with the new schedule: Tue+Thu weekly syncs, biweekly backlog grooming, review before planning on iteration-end Thu, retrospective on iteration-start Tue. Issue SRVOCF-1070 Signed-off-by: Stanislav Jakuschevskij --- .github/pull_request_template.md | 1 + docs/AGILE.md | 29 +-- docs/TESTING.md | 402 +++++++++++++++++-------------- 3 files changed, 234 insertions(+), 198 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8edbd79e..2cb7a0cb 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -20,6 +20,7 @@ Fixes [SRVOCF-XXX](https://redhat.atlassian.net/browse/SRVOCF-XXX) ## Checklist - [ ] Updated `docs/ARCHITECTURE.md` (if there are relevant changes to our layered architecture) +- [ ] Updated `docs/TESTING.md` (if there are relevant changes to our testing framework or setup)