skillfed

odoo-test

odoo-test provides a complete testing framework for Odoo development, generating test skeletons from model definitions, running test suites with tag filtering, and identifying coverage gaps. It supports multiple test class types—TransactionCase for ORM logic, HttpCase for routes and UI, and SavepointCase for exception handling—plus 20+ mock data generators and Azure DevOps CI/CD integration.

odoo-test generates test skeletons and CRUD test cases for Odoo models across versions 14–19.

AI-generated summary based on this skill's SKILL.md

71 28 MIT updated by ahmed-lakosha

Install

ahmed-lakosha/odoo-plugins/odoo-test · repository language: Python

git clone https://github.com/ahmed-lakosha/odoo-plugins
cp -r odoo-plugins/odoo-test-plugin/odoo-test ~/.claude/skills/odoo-test
npx skillfed install ahmed-lakosha/odoo-plugins/odoo-test

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What is odoo-test and what testing capabilities does it provide?

odoo-test is a complete testing framework for Odoo development under MIT license. It generates test skeletons from model definitions, runs test suites with tag filtering, and identifies coverage gaps. The skill supports multiple test class types—TransactionCase for ORM logic, HttpCase for routes and UI, and SavepointCase for exception handling—plus 20+ mock data generators and Azure DevOps CI/CD integration.

Can odoo-test generate test cases for Odoo models automatically?

Yes. odoo-test generates test skeletons and CRUD test cases for Odoo models, creating realistic mock data and test fixtures for Odoo modules. It provides 20+ mock data generators to help you build comprehensive test suites without manual boilerplate, supporting both simple and complex model scenarios.

How does odoo-test handle transaction case and HTTP case testing?

odoo-test supports TransactionCase for ORM logic testing and HttpCase for controller route testing. You can write HTTP controller and E2E tests for Odoo routes and APIs, with SavepointCase available for exception handling and constraint validation. This multi-class approach ensures thorough coverage across different testing scenarios.

Does odoo-test analyze test coverage gaps in my code?

Yes. odoo-test can analyze test coverage gaps and identify untested code paths in your Odoo modules. This helps you understand which areas of your codebase need additional test cases and ensures more comprehensive validation of your business logic.

Can odoo-test run and manage test suites with CI/CD integration?

Yes. odoo-test runs and manages test suites with tag filtering and Azure DevOps CI/CD integration. You can organize tests by tags, filter execution, and integrate results into your CI/CD pipeline for automated testing and post_install test validation.

SKILL.md

rendered from the published skill — quoted content, verbatim


name: odoo-test description: | Comprehensive Odoo testing toolkit for generating test skeletons, running test suites, creating mock data, and analyzing test coverage across Odoo 14-19. Supports TransactionCase, HttpCase, SavepointCase, and integrates with Azure DevOps for CI/CD test result reporting.

<example> Context: User wants test cases for a custom model user: "Generate test cases for my custom sale.order extension module" assistant: "I will use the odoo-test skill to analyze the model definition and generate TransactionCase test skeletons covering CRUD operations, computed fields, and business logic." <commentary>Core trigger - test skeleton generation from model definition.</commentary> </example>

<example> Context: User wants mock data for testing user: "Create realistic mock data for testing my inventory module" assistant: "I will use the odoo-test skill to generate a mock data factory with realistic product, partner, and stock.move records using Odoo demo data patterns." <commentary>Test data creation trigger.</commentary> </example>

<example> Context: User wants to analyze test coverage user: "Show me which parts of my module have

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 5 files
odoo-test-plugin/odoo-test/SKILL.md
odoo-test-plugin/odoo-test/scripts/coverage_reporter.py
odoo-test-plugin/odoo-test/scripts/mock_data_factory.py
odoo-test-plugin/odoo-test/scripts/test_generator.py
odoo-test-plugin/odoo-test/scripts/test_runner.py

Related skills

Tags

test-automation code-coverage mock-data-generation ci-cd-integration quality-assurance test-framework business-logic-validation database-isolation end-to-end-testing test-reporting