[MIG] odoo_test_xmlrunner: Migration to 19.0 - #3598
Open
yajo wants to merge 15 commits into
Open
Conversation
Member
Author
|
/ocabot migration odoo_test_xmlrunner |
EmilioPascual
approved these changes
Apr 29, 2026
Also implement a better patch and merge test results.
- 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
This removes the new warning in 18.0
yajo
force-pushed
the
19.0-mig-odoo_test_xmlrunner
branch
from
July 30, 2026 07:45
103260f to
36e5ce6
Compare
Member
Author
|
Rebased. Conflicts fixed. It includes now what I pushed to #3689 by mistake. |
…file When setUpClass or tearDownClass fails, unittest creates an _ErrorHolder without running _XMLTestResult.startTest, so xmlrunner kept the source file of the previous test in self.filename. This made the JUnit report assign the failure to an unrelated module and left classname empty. Resolve the real test class from the _ErrorHolder description (setUpClass/tearDownClass (module.ClassName)), look up its source file and line with inspect, and patch the stored test info in addError/addFailure before the report is generated. Include a regression test that reproduces the wrong-file issue and verifies the fix. Assisted-by: OpenCode + kimi-k2.7-code
yajo
force-pushed
the
19.0-mig-odoo_test_xmlrunner
branch
from
July 30, 2026 07:53
36e5ce6 to
1dc6df8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nothing special
@moduon MT-14138