Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9318 Lượt xem

I am running OpenERP to execute tests with the following command line:

python server/7.0/openerp-server -c conf/70.conf -d Test --test-enable --init=sale

Unfortunately, OpenERP keeps running after executing the tests and is waiting for connections.

How do you start OpenERP to make it stop at the end of the tests ?

PS: I am using Jenkins CI to run tests.

Ảnh đại diện
Huỷ bỏ

You could have edited your previous question instead a creating a new one. The answer you're looking for is clearly provided in the --help flag that you mentioned yourself. http://help.openerp.com/question/10366/what-are-the-arguments-used-to-launch-openerp-and-install-all-modules-on-runbot/

Hi Maxime, i want to use Jenkins CI for run tests, Can you please explain me or provide me some information of it?, i have installed Jenkins in Ubuntu 12.04, but i dont know how to intrgrate openerp with Jenkins.

Tác giả

Hello Ghanshyam, In Jenkins CI, create a new job, add the bazaar branches, a triggering mechanism and the command line above to run OpenERP and its tests.

Câu trả lời hay nhất

Hi Maxime,

I think the argument that you're looking for is '--stop-after-init'. Also, when running tests you should use the '--test-commit' otherwise some tests will fail.

Regards.

Joao

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Add the option --stop-after-init:

./openerp-server -d TestDb --test-enable --init=sale --stop-after-init
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 23
4500
0
thg 10 22
1908
0
thg 8 22
3
0
thg 12 21
51
0
thg 10 21
20