Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4280 Zobrazení

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
Zrušit
Nejlepší odpověď
  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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 25
2185
0
bře 24
1643
2
lis 16
5883
3
úno 16
16607
3
bře 15
9378