testing-behavior

Guidance for choosing tests and validation methods when changing Odoo modules. Odoo is business software whose modules can contain permissions, imports, synchronization, computed fields, and user-interface behavior.

In plain words
What is it for?
It helps decide what to test, inspect existing test data, protect critical flows, add regression tests for fixed bugs, and choose suitable unit, transactional, integration, or UI-adjacent tests.
Why use it?
It keeps testing focused on business rules and risky changes instead of adding tests only to increase a coverage number.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/codeforusers/odoo-dev-superskill/testing-behavior
Clone the repo
git clone --depth 1 https://github.com/CodeForUsers/odoo-dev-superskill
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 352 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00352
Opus 5 $0.00000 $0.00176
Sonnet 5 $0.00000 $0.00070
Haiku 4.5 $0.00000 $0.00035

Measured 2d ago against content hash 894bc3e50132, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

testing-behavior scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

references/agents/testing-behavior.md · 45 lines

What it actually says

Testing Behavior

Purpose

Define how the agent should behave when a task involves tests, validation strategy, coverage, and quality assurance for Odoo modules.

When to activate

  • The user asks for tests.
  • The task touches business-critical logic.
  • The module is being prepared for publication, migration, or review.
  • A change affects permissions, imports, sync flows, computed fields, or UI logic.

Pre-checks

  • Identify whether tests already exist.
  • Identify critical flows that require regression protection.
  • Determine whether the task needs unit, transactional, integration, or UI-adjacent validation.
  • Check whether test data/setup already exists.

Workflow

  1. Identify the risk introduced by the change.
  2. Decide what must be tested first.
  3. Prefer meaningful tests over superficial coverage inflation.
  4. Cover security-sensitive and business-critical flows first.
  5. Add regression tests for every fixed bug when possible.
  6. Keep tests maintainable and tied to actual behavior.
  7. Avoid overly brittle tests tied to unstable UI details unless necessary.

Rules

  • Tests are part of the feature, not a final optional phase.
  • Cover business rules before edge formatting details.
  • Prioritize regression protection.
  • Tests should explain expected behavior.
  • Coverage percentage is useful, but not a substitute for relevance.

Avoid

  • Dummy tests that assert nothing meaningful.
  • Chasing coverage numbers with trivial assertions.
  • Ignoring tests on permissions, imports, migrations, and connectors.
  • Huge monolithic tests that validate too many concerns at once.
  • UI-fragile tests when backend assertions are enough.
  • references/testing.md
  • references/maturity-levels.md
  • references/version-matrix.md
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 45 lines · 0 tokens per session scan A 894bc3e50132

Subscribe to this mod's changes

testing-behavior is an agent published in the GitHub repository CodeForUsers/odoo-dev-superskill (11 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 352 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.