odoo-automated-tests
Write and run Odoo automated tests using TransactionCase, HttpCase, and browser tour tests. Covers test data setup, mocking, and CI integration.
npx skills add sickn33/agentic-awesome-skills --skill odoo-automated-tests --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Odoo Automated Tests ## Overview Odoo has a built-in testing framework based on Python's `unittest`. This skill helps you write `TransactionCase` unit tests, `HttpCase` integration tests, and JavaScript tour tests. It also covers running tests in CI pipelines. ## When to Use This Skill - Writing unit tests for a custom model's business logic. - Creating an HTTP test to verify a controller endpoint. - Debugging test failures in a CI pipeline. - Setting up automated test execution with `--test-enable`. ## How It Works 1. **Activate**: Mention `@odoo-automated-tests` and describe the feature to test. 2. **Generate**: Get complete test class code with setup, teardown, and assertions. 3. **Run**: Get the exact `odoo` CLI command to execute your tests. ## Examples ### Example 1: TransactionCase Unit Test (Odoo 15+ pattern) ```python # tests/test_hospital_patient.py from odoo.tests.common import TransactionCase from odoo.tests import tagged from odoo.exceptions import ValidationError @tagged('post_install', '-at_install') class TestHospitalPatient(TransactionCase): @classmethod def setUpClass(cls): # Use setUpClass for performance — runs once per class, not per test super().setUpClass()
- Overview
- When to Use This Skill
- How It Works
- Examples
- Example 1: TransactionCase Unit Test (Odoo 15+ pattern)
- Example 2: Run Tests via CLI
- Example 3: HttpCase for Controller Testing
- Best Practices
- Limitations
Run all tests for a specific module Run only tests tagged with a specific tag Run a specific test class
What does the odoo-automated-tests skill do?
Write and run Odoo automated tests using TransactionCase, HttpCase, and browser tour tests. Covers test data setup, mocking, and CI integration.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill odoo-automated-tests --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.