From 8cc93b1e5753ca2b0cc2b1ed7d0501ffa7f8148d Mon Sep 17 00:00:00 2001 From: cproudlock Date: Thu, 11 Dec 2025 17:31:58 -0500 Subject: [PATCH] Document test suite in CLAUDE.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Testing section so Claude knows to run ./tests/test_forms.sh after making changes to verify all forms work correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 00e8ff2..881d355 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -181,6 +181,22 @@ PCs are in the machines table, identified by: - **API Token:** *(add token here if needed)* - **Repo:** `cproudlock/shopdb` +## Testing + +### Run Form Tests +After making changes to ASP pages, run the test suite to verify all forms work: +```bash +./tests/test_forms.sh +``` + +**Tests 41 endpoints:** page loads, add forms, create operations (notifications, equipment, printers, subnets, applications, KB articles, vendors, models, network devices), and API endpoints. + +**Cleanup test data:** +```bash +docker exec dev-mysql mysql -u root -prootpassword shopdb -e "DELETE FROM notifications WHERE notification LIKE 'AUTOTEST_%';" +# (similar for other tables - see tests/cleanup_test_data.sql) +``` + ## Quick Reference ### Start Dev Environment