From 2e861b69ac930d2c7c46c3d3dc5b239796a2f330 Mon Sep 17 00:00:00 2001 From: VnPower Date: Sun, 29 Sep 2024 19:29:43 +0700 Subject: [PATCH] Proposed testing procedure --- doc/dev/testing.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/dev/testing.md b/doc/dev/testing.md index bc3f825..c966e73 100644 --- a/doc/dev/testing.md +++ b/doc/dev/testing.md @@ -1,8 +1,4 @@ -# About Testing - -Do we really need testing? What to test? - -## The Current State Of Testing +# The Current State Of Testing - some playwright test - syntax checking jet templates @@ -14,3 +10,11 @@ I tried doing using rapid to test templates. However, the generator is broken. T See the `rapid` branch. `interface{}` can't be used anywhere in Data_* or else rapid will complain. + +# Proposed testing procedure + +- Create basic GET requests to [all implemented GET routes](https://codeberg.org/VnPower/PixivFE/src/branch/v2/server/middleware/router.go) with and without parameters. +- Create basic POST requests to all implemented POST routes with different payloads. +- Perform static checks on rendered HTML pages (HTML parsing without any interactions). +- Perform dynamic checks on a live server (Interact with pages and routes using Playwright). +- Code guidelines check. \ No newline at end of file