diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..0124cc7 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,11 @@ +[run] +omit = + .venv/* + .tox/* + scripts/* + tests/* + */tests/* + */migrations/* + +[report] +show_missing = True diff --git a/Dockerfile b/Dockerfile index 4b3aca8..d4382cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/tox.ini b/tox.ini index 75ffb37..04d5cd4 100644 --- a/tox.ini +++ b/tox.ini @@ -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