Ignore:
Timestamp:
Apr 10, 2020, 7:54:08 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
a249e2d
Parents:
a2b8052
Message:

Added coverage generation to mapservice tox configuration

Location:
src/mapservice/codegen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/codegen/code_generator

    ra2b8052 rf61d16d  
    6262echo 'pip install $@' >> "${TOX_INSTALL_COMMAND}"
    6363chmod 0755 "${TOX_INSTALL_COMMAND}"
     64# create coverage configuration
     65COVERAGERC_FILE="${SRC_GEN}/.coveragerc"
     66echo "[run]" >> "${COVERAGERC_FILE}"
     67echo "branch = True" >> "${COVERAGERC_FILE}"
     68echo "omit = *test*" >> "${COVERAGERC_FILE}"
    6469
    6570# create MANIFEST.in to package openapi-spec and templates
  • src/mapservice/codegen/templates/test-requirements.mustache

    ra2b8052 rf61d16d  
    11flask_testing
    2 coverage>=4.0.3
     2coverage
    33pluggy>=0.3.1
    44py>=1.4.31
    55pytest
     6pytest-cov
    67Pillow
  • src/mapservice/codegen/templates/tox.mustache

    ra2b8052 rf61d16d  
    11[tox]
    2 envlist = py3
     2envlist = clean,py3
    33
    44[testenv]
    … …  
    88install_command = {toxinidir}/tox_install_command {opts} {packages}
    99
    10 commands = pytest
     10commands = pytest --cov=gnuboat_mapservice --cov-append --cov-report=term-missing
     11
     12[testenv:clean]
     13deps = coverage
     14skip_install = true
     15commands = coverage erase
Note: See TracChangeset for help on using the changeset viewer.