Odoo Experience 2017
Testing Odoo: A Guided Tour
Developer
Ort: Aula Magna / Lauzelle - 04.10.17, 17:30 - 04.10.17, 17:50 (Europe/Brussels) (20 Minuten)
Adrien Dieudonné, Software Developer - Odoo
Adrien Dieudonné, Software Developer - Odoo

This talk is dedicated to developers, and in particular JS developers. The new v11 testing framework (with the new views) is the most important contribution to Odoo of the framework web team. This talk will allow developers to have an overview of what has been done and to understand how it impacts them. Here is the structure of the talk:

- Introduction (what is testing, and why it is important)

- Odoo modular system: why it is hard to test (many combinations)

- The various testing systems: python tests, tours, unit tests JS

- why none of these system is enough, and why all of them together allows us to sleep at night

- What is missing: in my opinion, a better way to test business logic without hitting the DB (mocking the DB)

- A more in depth look at Qunit JS tests: why they allow us to easily test asynchronous behaviour, in a totally synchronous way. Explain their power (we can really test easily any interactions) - explain a large philosophical change that we made with the new qunit tests: tests are not run with the minimal dependency set, but with all installed modules loaded.

With this talk, you will have a good overview of the various layers of Odoo and how to test them.You will will not be immediately productive, but you will know what to look for when they need to test something.