Mangono runbot (Odoo tester)
This project all the source code relative to the process to test Odoo in the mangono way.
This project support Odoo version 12.0 to 18.0.
The complete documentation is available on atlas
Use it as a GitLab CI Components
include:
- component: $CI_SERVER_FQDN/gitlab-ci/odoo-quality/runbot@1
inputs:
odoo-version: "18.0"
See this component page for more information
Run tests
You can simply run test with
hatch -e test test
If you want to run the runbot on a particular version you can
docker compose run --rm -it runbot18
Build lib
hatch build
Use it with mise (without Docker Odoo image)
Use the runbot-mise component if your runner already has mise available and you prefer
not to depend on a pre-built Odoo Docker image:
include:
- component: $CI_SERVER_FQDN/gitlab-ci/odoo-quality/runbot-mise@1
inputs:
odoo-version: "18.0"
tag: "my-runner"
The component uses registry.mangono.io/dockers/clevertools-batteries as the base image.
It calls mise run build to set up the Odoo venv, then delegates to mise run odoo:runbot.
Required mise tasks (in the consuming project)
The consuming project must expose two tasks in its mise.toml / tasks/ directory:
build— downloads Odoo and sets up the Python venvodoo:runbot— runs the full runbot sequence (diag → init → run → report)
To create odoo:runbot as a file-based task (recommended), add
tasks/odoo/runbot to the consuming project (see
odoo-mise-linux):
#!/usr/bin/env bash
# mise description="Lance le runbot Odoo (diag → init → run → report)"
set -e
odoo-runbot --verbose --workdir="${RUNBOT_WORKDIR:-.}" --config="${RUNBOT_CONFIG:-}" diag
export DB_HOST="${DB_HOST:-database}"
odoo-runbot --verbose --workdir="${RUNBOT_WORKDIR:-.}" --config="${RUNBOT_CONFIG:-}" init
odoo-runbot --workdir="${RUNBOT_WORKDIR:-.}" --config="${RUNBOT_CONFIG:-}" run ${RUNBOT_ARGS:-} || EXIT=$?
echo "Execute coverage report in ${RUNBOT_WORKDIR:-.}/runbot_result"
odoo-runbot --workdir="${RUNBOT_WORKDIR:-.}" --config="${RUNBOT_CONFIG:-}" report
exit ${EXIT:-0}
Configuration is done via [env] in mise.toml:
[env]
RUNBOT_WORKDIR = "odoo_project"
RUNBOT_CONFIG = "odoo_project/pyproject.toml"
Build Doc
You can build python code as doc with mkdoc, you only need to run
hatch -e doc run mkdocs build # or server
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_runbot-1.8.11.tar.gz.
File metadata
- Download URL: odoo_runbot-1.8.11.tar.gz
- Upload date:
- Size: 147.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
584c2acfdb413f66d5d1492cbec8d00844682523e67a293be65b4c9b3e29014d
|
|
| MD5 |
d0c230397befb451275e6b8ead89424e
|
|
| BLAKE2b-256 |
343ac96f2fe841d4481ff28d55b1304d79839ee4061b0f3a06c8c5af8e2a306e
|
File details
Details for the file odoo_runbot-1.8.11-py3-none-any.whl.
File metadata
- Download URL: odoo_runbot-1.8.11-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08affcd877932b3fead6744b5ab8620d37dff1fbbca70df4144c45b9362a63df
|
|
| MD5 |
97f74e684e64c3ad71d94162e5441cd3
|
|
| BLAKE2b-256 |
a13d726c5ac02d3b9ee7e4a1028a05244f14d1ef6cd1cba0226bf189b8b44e4d
|