Document test suite in CLAUDE.md

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 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-11 17:31:58 -05:00
parent 22a60a9e5a
commit 8cc93b1e57

View File

@@ -181,6 +181,22 @@ PCs are in the machines table, identified by:
- **API Token:** *(add token here if needed)* - **API Token:** *(add token here if needed)*
- **Repo:** `cproudlock/shopdb` - **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 ## Quick Reference
### Start Dev Environment ### Start Dev Environment