Agent skill · Testing & QA

odoo-automated-tests

Write and run Odoo automated tests using TransactionCase, HttpCase, and browser tour tests. Covers test data setup, mocking, and CI integration.

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
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.

Facts
Files in the skill folder: 1
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/odoo-automated-tests/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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()

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. How It Works
  4. Examples
  5. Example 1: TransactionCase Unit Test (Odoo 15+ pattern)
  6. Example 2: Run Tests via CLI
  7. Example 3: HttpCase for Controller Testing
  8. Best Practices
  9. Limitations
Commands it runs
Run all tests for a specific module
Run only tests tagged with a specific tag
Run a specific test class
More from agentic-awesome-skills
All skills →
About this skill
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.

Keep going