Generate unittes XML Junit reports #167
madecsmile
started this conversation in
Ideas
Replies: 3 comments 9 replies
-
It can be interesting, although the override you are mentioning seems that you are touching Odoo codebase. Is that true? Can you share a module link? |
Beta Was this translation helpful? Give feedback.
7 replies
-
You mention that your are using gitlab, how would i test this out on our instance? We are currently running the tests with pytest (in doodba): /usr/local/bin/pytest --odoo-database="${PGDATABASE}" --odoo-config=/opt/odoo/auto/odoo_test.conf --odoo-http --junitxml=/opt/odoo/auto/test-artifacts/junit.xml "${pytest_args[@]}" |
Beta Was this translation helpful? Give feedback.
1 reply
-
And we should also have a look at odoo/odoo#151728 where @yajo made an effort to bring xml reports to Odoo |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
As far as I know, Odoo tests does not generate tests reports.
I made a small module wich use https://pypi.org/project/unittest-xml-reporting/ generate reports.
The override is simple, 2 lines on new_run_suite method.
Then, the tests results are fully integrated on the CI (I am using Gitlab, it should do the same on Github).
Does that module can be published on OCA repo ?
Thanks,
Madec
Beta Was this translation helpful? Give feedback.
All reactions