Skip to content

[14.0] [BACKPORT] odoo_test_xmlrunner + fixes - #3126

Open
paradoxxxzero wants to merge 3 commits into
OCA:14.0from
akretion:14.0-backport-odoo_test_xmlrunner
Open

paradoxxxzero wants to merge 3 commits into
OCA:14.0from
akretion:14.0-backport-odoo_test_xmlrunner

Conversation

@paradoxxxzero

Copy link
Copy Markdown
Contributor

Backport of #2957 with a more elegant patch handling tests results merging which fixes the tests result display and the process exit code (1 if tests failed)

@Kev-Roche Kev-Roche left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Functional review on gitlab

Comment thread odoo_test_xmlrunner/__manifest__.py Outdated
"website": "https://github.com/OCA/server-tools",
"category": "Tools",
"sequence": 20,
"auto_install": True,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"auto_install": True,
"auto_install": False,

See : #3156

@metaminux
metaminux force-pushed the 14.0-backport-odoo_test_xmlrunner branch from 390bd46 to ab74474 Compare October 16, 2026 00:41
@OCA-git-bot OCA-git-bot added series:14.0 mod:odoo_test_xmlrunner Module odoo_test_xmlrunner labels Oct 16, 2026
@legalsylvain

Copy link
Copy Markdown
Contributor

hi @metaminux, @paradoxxxzero : could you fix #3126 (review) ?
thanks

- It doesn't make sense to make this module auto installable.
- As the module depends only on 'base' AND introduces a new external dependency to an extra library (unittest-xml-reporting) all the instances that are cloning server-tools repo will have trouble, because it will not be possible to install this module, due to missing dependency
@metaminux
metaminux force-pushed the 14.0-backport-odoo_test_xmlrunner branch from ab74474 to f47acaf Compare October 16, 2026 19:15
@metaminux

Copy link
Copy Markdown
Contributor

hi @metaminux, @paradoxxxzero : could you fix #3126 (review) ? thanks

Hello @legalsylvain

I just cherry-picked your commit on 17.0.

This should do the job...

Regards,

Comment thread odoo_test_xmlrunner/__manifest__.py Outdated
{
"name": "Unittest xUnit reports",
"version": "14.0.1.0.0",
"depends": [],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should depend on "base". I never saw a module without dependency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should depend on "base". I never saw a module without dependency.

There are... for example : pydantic/manifest.py
I also found modules where the depends section is just removed...

But looking at https://www.odoo.com/documentation/20.0/developer/reference/backend/module.html#manifest you're probably true.

I'll fix that, thanks

Also implement a better patch and merge test results.
@metaminux
metaminux force-pushed the 14.0-backport-odoo_test_xmlrunner branch from f47acaf to fe14dbb Compare October 16, 2026 21:36
@metaminux

Copy link
Copy Markdown
Contributor

@legalsylvain "base" is back ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:odoo_test_xmlrunner Module odoo_test_xmlrunner series:14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants