Skip to content

Hoot Documentation Coming Soon? Or is QUnit still usable? #12863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AbdelrahmanSadat opened this issue Apr 11, 2025 · 2 comments
Open

Hoot Documentation Coming Soon? Or is QUnit still usable? #12863

AbdelrahmanSadat opened this issue Apr 11, 2025 · 2 comments

Comments

@AbdelrahmanSadat
Copy link

I recently started working on a custom module for Odoo 18.0. And while attempting to create unit tests for my Javascript files by following the testing guide, I realized that the documentation is out of date and doesn't match at all the test runner served on /web/test.

Basically I noticed that the documentatin still describes QUnit, while this version of Odoo (18.0) uses the new Hoot framework.
The only mention of the Hoot framework I found was from this talk.

So when would documentation for Hoot be coming for Odoo's docs, and is QUnit still usable on 18.0?

@jum-odoo
Copy link
Contributor

Hi @AbdelrahmanSadat, the documentation is indeed out of date for JavaScript unit tests, as QUnit is now being deprecated as we convert unit tests to Hoot (QUnit is expected to be gone in the next major version, or soon after). So, to answer your last question: yes, it is still possible to write QUnit tests in 18.0, but we expect it to be the last version where QUnit is included in our code base, so you should probably write Hoot tests instead.

New pages of documentation are being written, but as we work with limited resources, we have to prioritize other more important tasks (like the conversion of remaining tests) to ensure the testing framework stability and reliability.

Note that while there isn't a centralized documentation yet, there are already plenty of examples of various test cases in the Odoo code base, and each export from Hoot and test helpers should include some precise inline docstring, sometimes with examples.

@kesowkk
Copy link

kesowkk commented Apr 18, 2025

@jum-odoo
Hi @jum-odoo, I understand that documentation for JavaScript unit tests is currently being prioritized for Hoot. If there's a need for documentation related to accounting and financial aspects, I'm available to assist. Let me know how I can contribute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants