Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4265 Visualizzazioni

Questions: 

1. How to apply TDD flow to openerp modules? Where to place tests, where is test runner?

2. How to avoid reinstalls of module, to see changes that done in models? 

Avatar
Abbandona
Risposta migliore
  1. You can do with unittest2 and save it under tests folder [1]. Or you can do the yaml test and save it under test folder [2].
  2. Argumen init or update needed if you want to update xml data or change field data (database scheme). Any changes in python script will be loaded everytime the server start.

[1] https://doc.odoo.com/trunk/server/05_test_framework/

[2] https://doc.odoo.com/6.1/developer/11_upgrade_and_migration/#yaml-data-serialization

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 25
2149
0
mar 24
1611
2
nov 16
5876
3
feb 16
16593
3
mar 15
9359