Skip to content
Snippets Groups Projects

PIPELINE TESTING: Playing with shared/workspaces testing

Merged Charlotte Hausman requested to merge playing-with-shared-testing into 2.8.4-DEVELOPMENT
1 unresolved thread
Compare and Show latest version
5 files
+ 17
35
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 8
4
@@ -5,10 +5,14 @@
- cd ${PATH_PREFIX}${SERVICE_NAME}
# use the poetry virtual environment and packages
- poetry install --with test
- pwd
- $(poetry env info -p)/bin/pytest . --junitxml=tests-service.xml --cov=${SERVICE_NAME} --cov-report=
- $(poetry env info -p)/bin/pytest ../../${TEST_PREFIX2}${SERVICE_NAME} --junitxml=tests-shared.xml --cov=../../${PATH_PREFIX2}${SERVICE_NAME} --cov-append --cov-report=
- $(poetry env info -p)/bin/junitparser merge tests-service.xml tests-shared.xml tests.xml
- |
if [ -z "${PATH_PREFIX2+x}" ]; then
$(poetry env info -p)/bin/pytest . --junitxml=tests.xml --cov=${SERVICE_NAME} --cov-report=
else
$(poetry env info -p)/bin/pytest . --junitxml=tests-service.xml --cov=${SERVICE_NAME} --cov-report=
$(poetry env info -p)/bin/pytest ../../${TEST_PREFIX2}${SERVICE_NAME} --junitxml=tests-shared.xml --cov=../../${PATH_PREFIX2}${SERVICE_NAME} --cov-append --cov-report=
$(poetry env info -p)/bin/junitparser merge tests-service.xml tests-shared.xml tests.xml
fi
- mv ./.coverage ${CI_PROJECT_DIR}/.coverage.${SERVICE_NAME}.${CI_COMMIT_SHORT_SHA}
- mv ./tests.xml ${CI_PROJECT_DIR}/tests.${SERVICE_NAME}.${CI_COMMIT_SHORT_SHA}.xml
artifacts:
Loading