-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-reset-local.sh
executable file
·39 lines (32 loc) · 1.7 KB
/
docker-reset-local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# delete odoo docker instance
echo "**********[STOP ODOO DOCKER INSTANCES]*********"
docker stop odoo17Learning postgres_odoo17Learning
echo "**********[DELETE ODOO DOCKER INSTANCES]*********"
docker rm -f postgres_local
# delete all volumes
echo "**********[DELETE ODOO DOCKER VOLUMES]*********"
docker volume rm learning-odoo-17_local-db-pgdata
# execute the project
echo "**********[START ODOO DOCKER INSTANCES]*********"
docker compose -f docker-compose-local.yml up -d --force-recreate
# odoo test launcher
# odoo17 -c config/odoo-local.conf -i estate --test-enable
# run all the tests of account, and modules installed by account
# the dependencies already installed are not tested
# this takes some time because you need to install the modules, but at_install
# and post_install are respected
# odoo-bin -i account --test-enable
# run all the tests in this file
# odoo-bin --test-file=addons/account/tests/test_account_move_entry.py
# test tags can help you filter quite easily
# odoo-bin --test-tags=/account:TestAccountMove.test_custom_currency_on_account_1# run all the tests of account, and modules installed by account
# the dependencies already installed are not tested
# this takes some time because you need to install the modules, but at_install
# and post_install are respected
# odoo-bin -i account --test-enable
# run all the tests in this file
# odoo-bin --test-file=addons/account/tests/test_account_move_entry.py
# test tags can help you filter quite easily
# odoo-bin --test-tags=/account:TestAccountMove.test_custom_currency_on_account_1
# odoo17 -c config/odoo-local.conf --test-file=/home/nathanbangwa/Documents/learning/odoo/learning-odoo-17/addons/estate/tests/test_estate_property.py