From 4c0ed94f8b87a2a5c0621cc3c3c1300b5caaf246 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sun, 12 Jul 2020 15:20:39 -0400 Subject: [PATCH] [UPD] run.md improve guide for testing --- doc/RUN.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/RUN.md b/doc/RUN.md index c1e1d0b..545af32 100644 --- a/doc/RUN.md +++ b/doc/RUN.md @@ -20,22 +20,30 @@ With arguments ### Method 2 Execute your own python script: ```bash -source ./venv/bin/activate -python odoo/odoo-bin -c config.conf --log-level debug +./run.sh --log-level debug ``` ### Update all Great idea to run it when updating Odoo, it updates database of each modules. ```bash -python odoo/odoo-bin -c config.conf -d [DATABASE] -u all --log-level debug +./run.sh -d [DATABASE] -u all --log-level debug ``` ### Update module ```bash -python odoo/odoo-bin -c config.conf -d [DATABASE] -u [module] --log-level debug +./run.sh -d [DATABASE] -u [module] --log-level debug ``` ### Test +First execution, install you requirements, choose a new database. ```bash -python odoo/odoo-bin -c config.conf -d [DATABASE] -i [module to test] --test-enable --stop-after-init --log-level=test --test-tags [module_name][tags] +./run.sh -d [DATABASE] -i [module to test] --test-enable --stop-after-init --log-level=test +``` +Execute your test on specific module. +```bash +./run.sh -d [DATABASE] -u [module to test] --test-enable --stop-after-init --log-level=test +``` +Execute your test on specific module with tags. +```bash +./run.sh -d [DATABASE] -u [module to test] --test-enable --stop-after-init --log-level=test --test-tags [module_name][tags] ``` \ No newline at end of file