marcfargas/claude-odoo-dev/test-environments

Claude Code and agent skill by marcfargas/claude-odoo-dev

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

This skill should be used when the user asks to "spin up a test Odoo", "create a test environment", "run integration tests against Odoo", "set up testcontainers for Odoo", "provision test data", or mentions Docker-based Odoo testing.

Install

npx vskill@latest install marcfargas/claude-odoo-dev/test-environments

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as marcfargas/claude-odoo-dev/test-environments.

Odoo Test Environments

Spin up fresh, isolated Odoo instances for testing using Testcontainers. Each test run gets its own PostgreSQL + Odoo container with automatic cleanup.

Installation

bash
npm install @marcfargas/odoo-testcontainers @marcfargas/odoo-client

Quick Start

typescript
import { startOdoo } from '@marcfargas/odoo-testcontainers';
const container = await startOdoo({
version: '17.0',
modules: ['sale', 'purchase'],
});
// container.url, container.database, container.username, container.password
// Use with createClient() from @marcfargas/odoo-client
await container.stop();

Presets

Pre-configured module sets for common scenarios:

typescript
import { startOdoo, OdooPresets } from '@marcfargas/odoo-testcontainers';
await startOdoo({ ...OdooPresets.hr }); // hr, hr_attendance, hr_timesheet
await startOdoo({ ...OdooPresets.sales }); // sale, sale_management, crm
await startOdoo({ ...OdooPresets.accounting }); // account, account_payment
await startOdoo({ ...OdooPresets.project }); // project, project_todo
await startOdoo({ ...OdooPresets.full }); // all common modules

Custom Addons

Mount local addon directories into the container:

typescript
await startOdoo({
version: '17.0',
addons: [{ hostPath: './my-addons', containerPath: '/mnt/extra-addons' }],
modules: ['my_custom_module'],
});

Seed Database

For faster startup (~15s vs ~3min), use a pre-seeded database image:

bash
export ODOO_SEED_IMAGE=ghcr.io/marcfargas/odoo-test-db:17.0-abc123

The toolbox CI builds seed images weekly. Configure in docker/seed-config.json.

Provisioners

Opt-in helpers for creating test data shapes:

typescript
import {
provisionPartners,
provisionProjects,
provisionUsers,
provisionModules,
provisionPartnerCategories,
provisionTaskProperties,
} from '@marcfargas/odoo-testcontainers';

Each provisioner takes an authenticated OdooClient and a configuration object. They handle dependency ordering (e.g., partner categories before partners, projects before tasks).

Vitest Integration

typescript
// vitest.integration.config.mts
export default defineConfig({
test: {
globalSetup: './tests/helpers/globalSetup.ts',
include: ['tests/**/*.integration.test.ts'],
pool: 'forks',
fileParallelism: false,
},
});

The global setup starts containers once, sets env vars, and tears down after all tests complete.

Supported Versions

Odoo 17, 18, and 19 are tested in CI. Specify the version in startOdoo({ version: '18.0' }).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/marcfargas/claude-odoo-dev/test-environments/badge)](https://verified-skill.com/skills/marcfargas/claude-odoo-dev/test-environments)

Something wrong with this skill or its page? Tell us.