From ec4795c4de9b007ccd4165208a66d64e7a2f75d9 Mon Sep 17 00:00:00 2001 From: Luis Ernesto Portillo Zaldivar Date: Mon, 14 Jul 2025 20:50:52 -0600 Subject: [PATCH] docs: Add mandatory testing rule to CLAUDE.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added critical rule requiring ephemeral instance testing after every task - Specified exact commands to run for testing - Emphasized checking logs for errors before proceeding 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- CLAUDE.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 92228a6..c735b10 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -30,6 +30,14 @@ docker-compose down -v ### Instance Persistence Policy After successful installation/update, the instance must remain active for user validation. Do NOT stop the instance until user explicitly confirms testing is complete. +### MANDATORY Testing Rule +**CRITICAL**: After EVERY task that modifies code, models, views, or data: +1. Restart the ephemeral instance: `docker-compose down -v && docker-compose up -d` +2. Check initialization logs for errors: `docker-compose logs odoo_init | grep -i "error\|traceback\|exception"` +3. Verify successful completion: `docker-compose logs odoo_init | tail -30` +4. Only proceed to next task if no errors are found +5. If errors are found, fix them before continuing + ### Database Operations #### Direct PostgreSQL Access