Skip to content

Commit

Permalink
Updated recipes for Dockerfile and tox and instructions for coverage
Browse files Browse the repository at this point in the history
- Sample configuration of coveragerc: https://git.io/fjZEl
- Pytest setup tips: https://bit.ly/2VKOAW1
  • Loading branch information
willianantunes committed May 1, 2019
1 parent 7edd043 commit 358d1fc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
omit =
.venv/*
.tox/*
scripts/*
tests/*
*/tests/*
*/migrations/*

[report]
show_missing = True
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ WORKDIR /app

COPY . /app

RUN pip install pipenv && \
RUN python -m pip install --upgrade pip && \
pip install pipenv && \
pipenv install --system --deploy --ignore-pipfile
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ deps = pipenv
commands =
pipenv install --dev --ignore-pipfile
python manage.py makemigrations
pytest -vv --cov-report xml --cov=.
pytest tests -vv --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html

0 comments on commit 358d1fc

Please sign in to comment.