跳至內容
選單
此問題已被標幟
1 回覆
4101 瀏覽次數

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? 

頭像
捨棄
最佳答案
  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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 25
1810
0
3月 24
1464
2
11月 16
5675
3
2月 16
16404
3
3月 15
9158