odoo-test

Generate, run, and analyze Odoo tests across versions 14-19.

72|28|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/ahmed-lakosha/odoo-plugins --skill odoo-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: odoo-test
Source: https://github.com/ahmed-lakosha/odoo-plugins/tree/main/odoo-test-plugin/odoo-test
Command: npx skills add https://github.com/ahmed-lakosha/odoo-plugins --skill odoo-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a structured toolkit to generate, run, and analyze Odoo tests across versions 14-19, dramatically reducing manual QA effort and enabling consistent test coverage.

Core Features & Use Cases

  • Test Skeletons: Auto-generates unit, integration, and HTTP controller tests from Odoo model definitions.
  • Test Execution & Reporting: Executes test suites, aggregates results, and outputs coverage metrics suitable for CI/CD pipelines.
  • Mock Data & Fixtures: Generates realistic mock data for test scenarios to speed up setup and improve realism.
  • Use Case: When upgrading modules across Odoo versions, quickly scaffold tests, validate behavior, and measure coverage in CI.

Quick Start

Install the Odoo test plugin, then run the test generator for a target model to produce ready-to-run test scaffolds.

Frequently Asked Questions about odoo-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Odoo test skeletons for unit and integration tests?

You can generate Odoo test skeletons by using AST-based parsing on Odoo model definitions to automatically produce ready-to-run unit, integration, and HTTP controller test scaffolds. This accelerates test development by extracting structure directly from the module code.

What is the best way to automate TransactionCase tests across Odoo 14-19?

Automating TransactionCase tests across Odoo 14-19 involves executing test suites via a CLI utility that aggregates results and outputs coverage metrics. This streamlines module validation and ensures consistent behavior during version upgrades.

Does this Odoo testing toolkit support CI/CD pipelines?

Yes, the Odoo testing toolkit supports CI/CD pipelines by providing a suite of CLI and CI-ready utilities. It executes test suites, aggregates results, and outputs coverage metrics suitable for continuous integration environments.

Can I generate mock data and fixtures for Odoo HTTP controller tests?

Yes, you can generate realistic mock data and fixtures for Odoo HTTP controller tests. The toolkit creates mock data for test scenarios to speed up setup and improve realism for unit, integration, and controller validations.

How do I measure test coverage when upgrading modules across Odoo versions?

You measure test coverage when upgrading modules by running the test execution utility to aggregate results and output coverage metrics. This validates module behavior and measures coverage specifically across Odoo 14-19 environments.

Why do I need AST-based parsing for automated Odoo test generation?

AST-based parsing is needed for automated Odoo test generation because it analyzes the abstract syntax tree of Odoo model definitions. This allows the toolkit to accurately scaffold tests without manual intervention, reducing QA effort.