Commit b8d43da1 authored by Bart Kamphorst's avatar Bart Kamphorst Committed by Ruben ten Hove
Browse files

fix: python:pytest accepts customizable path PYTEST_TARGET

parent b8fbe0f0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ variables:
    -vvv --capture=tee-sys -o log_cli=true -o log_cli_level=DEBUG --color=yes
  PYTEST_EXTRA_ARGS: ""
  PYTEST_INVOCATION: python3 -m pytest # Can be changed to "pytest"
  PYTEST_TARGET: .

python:pytest:
  extends: .python:pre-install
@@ -23,7 +24,7 @@ python:pytest:
      --cov-fail-under=${PYTEST_COVERAGE_THRESHOLD}
      --junitxml=${CI_PROJECT_DIR}/pytest-report.xml --cov-report
      xml:${CI_PROJECT_DIR}/pytest-coverage.xml -p no:cacheprovider
      ${PYTEST_DEFAULT_ARGS} ${PYTEST_EXTRA_ARGS} .
      ${PYTEST_DEFAULT_ARGS} ${PYTEST_EXTRA_ARGS} ${PYTEST_TARGET:-.}
  coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
  artifacts:
    reports: