Odoo Experience 2017
Best Practices to Develop Odoo Unit Tests
Developer
Lieu : Aula Magna / Foyer du Lac - 05/10/2017 15:30 - 05/10/2017 15:50 (Europe/Brussels) (20 minutes)
Best Practices to Develop Odoo Unit Tests
Thibault François - Technical Consultant Team Leader, Odoo
Thibault François - Technical Consultant Team Leader, Odoo

Ludovic is graduated from Industrial Engineering School. He has been working at Odoo from 2015 as Technical consultant and he is currently working within the professional services. In addition of working on projects, he also coaches partners achieving their goals with Odoo.


One of the biggest challenges we all face is to deliver a quality software to our customers. We are all struggling to test and stabilize new features or integrations. One of a most common mistakes is that we focus too much on functional and integration tests and forget to write unit tests.


This talk will give you good reasons to start unit testing with Odoo. We will see good practices to write code that can be tested, such as code isolation. You will also discover the golden rules to writing great unit tests, and tools that you can use to improve the quality of your tests and your developments. This will be shown with the tools we use internally in Odoo.
Sometimes our developments modify Odoo deeply, break the standard behavior, leading to the failure of the tests. As the behavior is not present anymore the test is irrelevant. This talk will also show you how to disable standard tests.