Skip to content

Commit 7973155

Browse files
authored
TA#69869 [IMP] comment coverage report generation (#143)
* TA#69869 [IMP] comment coverage report generation * Delete chwon odoo * Update docker-compose.yml
1 parent 8a63cbd commit 7973155

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ RUN pip3 install -r /odoo-requirements.txt -r extra-requirements.txt && \
7373

7474
# Files to run the tests
7575
# run_pytest to run the test with pytest-odoo
76-
COPY --chown=odoo ./docker_files/run_pytest.sh /usr/local/bin/
76+
COPY ./docker_files/run_pytest.sh /usr/local/bin/
7777
RUN chmod +x /usr/local/bin/run_pytest.sh
7878

7979
# Configuration of the coverage report
80-
COPY --chown=odoo ./.coveragerc .
80+
COPY ./.coveragerc .
8181

8282
ENV ODOO_HOME /home/odoo
8383
RUN useradd -d "${ODOO_HOME}" -m -s /bin/bash odoo

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ services:
44
context: .
55
dockerfile: Dockerfile
66
volumes:
7-
- odoo-web-data:/usr/local/lib/python3.8/site-packages
7+
- odoo-web-data:/var/lib/odoo
88
- ./log:/var/log/odoo
99
# Inject the addons as a volume as the addons are just here to test the setup for the next step in the
1010
# docker pipeline.
1111
- ./docker_files/odoo_specific.conf:/etc/odoo/odoo_specific.conf
1212
- ./docker_files/main:/mnt/extra-addons/main
13-
- .extra-addons:/mnt/extra-addons
1413
ports:
1514
- "8069:8069"
1615
- "8071:8071"

docker_files/run_pytest.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ cd $LOG_DIR
77
pytest $TEST_DIR \
88
-v \
99
--disable-warnings \
10-
--cov \
11-
--cov-branch \
12-
--cov-config /.coveragerc \
13-
--cov-report xml \
14-
--junit-xml=${LOG_DIR}/junit.xml
10+
#--cov \
11+
#--cov-branch \
12+
13+
#--cov-config /.coveragerc \
14+
#--cov-report xml \
15+
# --junit-xml=${LOG_DIR}/junit.xml

0 commit comments

Comments
 (0)