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:
16
CLAUDE.md
16
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
|
||||
|
||||
Reference in New Issue
Block a user