Skip to content

Commit

Permalink
TA#69869 [IMP] comment coverage report generation (#143)
Browse files Browse the repository at this point in the history
* TA#69869 [IMP] comment coverage report generation

* Delete chwon odoo

* Update docker-compose.yml
  • Loading branch information
abenzbiria authored Oct 14, 2024
1 parent 8a63cbd commit 7973155
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ RUN pip3 install -r /odoo-requirements.txt -r extra-requirements.txt && \

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

# Configuration of the coverage report
COPY --chown=odoo ./.coveragerc .
COPY ./.coveragerc .

ENV ODOO_HOME /home/odoo
RUN useradd -d "${ODOO_HOME}" -m -s /bin/bash odoo
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ services:
context: .
dockerfile: Dockerfile
volumes:
- odoo-web-data:/usr/local/lib/python3.8/site-packages
- odoo-web-data:/var/lib/odoo
- ./log:/var/log/odoo
# Inject the addons as a volume as the addons are just here to test the setup for the next step in the
# docker pipeline.
- ./docker_files/odoo_specific.conf:/etc/odoo/odoo_specific.conf
- ./docker_files/main:/mnt/extra-addons/main
- .extra-addons:/mnt/extra-addons
ports:
- "8069:8069"
- "8071:8071"
Expand Down
11 changes: 6 additions & 5 deletions docker_files/run_pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ cd $LOG_DIR
pytest $TEST_DIR \
-v \
--disable-warnings \
--cov \
--cov-branch \
--cov-config /.coveragerc \
--cov-report xml \
--junit-xml=${LOG_DIR}/junit.xml
#--cov \
#--cov-branch \

#--cov-config /.coveragerc \
#--cov-report xml \
# --junit-xml=${LOG_DIR}/junit.xml

0 comments on commit 7973155

Please sign in to comment.