Skip to content

Conversation

@PieterPaulussen
Copy link
Contributor

@PieterPaulussen PieterPaulussen commented Apr 21, 2021

At the moment, a doctest that fails is not registered in the output of the test results.
I have tested this hypothesis here: #336 where the tests do not fail, even though there is a clear error present!

@PieterPaulussen PieterPaulussen changed the title Fix/doctests hidden errors [FIX] 14.0 doctests hidden errors Apr 21, 2021
@StefanRijnhart
Copy link
Member

Oh, but this way we are stuck again with the meaningless test names, which is why Nils used a wrapper class...

2021-04-21 13:08:02,987 5794 INFO openerp_test doctest: Starting DocTestCase.runTest ...
2021-04-21 13:08:02,989 5794 INFO openerp_test doctest: Starting DocTestCase.runTest ...
2021-04-21 13:08:02,990 5794 INFO openerp_test doctest: Starting DocTestCase.runTest ...
2021-04-21 13:08:02,990 5794 INFO openerp_test doctest: Starting DocTestCase.runTest ...

@PieterPaulussen
Copy link
Contributor Author

PieterPaulussen commented Apr 29, 2021

I have refactored the tests a bit and now the output looks like:

2021-04-29 11:06:09,567 22509 INFO odoo odoo.addons.queue_job.tests.common: Starting OdooDocTestCase.runTest ... 
2021-04-29 11:06:09,567 22509 INFO odoo odoo.addons.queue_job.tests.common: Running tests for odoo.addons.queue_job.jobrunner.channels.ChannelManager

@StefanRijnhart
Copy link
Member

@nilshamerlinck what do you think of this solution to the problem of doctest failures going unnoticed?

@guewen
Copy link
Member

guewen commented May 19, 2021

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-338-by-guewen-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b1912c7 into OCA:14.0 May 19, 2021
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at b1912c7. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants