Issue #3390941: Investigate adding a Mutation testing stage
Compare changes
Conflict: This file was modified in both the source and target branches.
Ask someone with write access to resolve it.
+ 46
− 2
@@ -32,7 +32,7 @@ variables:
@@ -32,7 +32,7 @@ variables:
value: --coverage-cobertura $CI_PROJECT_DIR/coverage.xml --coverage-filter $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/ --coverage-text --colors=never
@@ -112,7 +112,7 @@ phpstan-new-baseline:
@@ -112,7 +112,7 @@ phpstan-new-baseline:
@@ -132,6 +132,8 @@ phpunit:
@@ -132,6 +132,8 @@ phpunit:
- echo "$localstack_ipaddr s3.localhost.localstack.cloud s3fs-test-bucket.s3.localhost.localstack.cloud" >> /etc/hosts
- sed -i "s#<source>$CI_PROJECT_DIR/web/modules/custom/$CI_PROJECT_NAME#<source>$CI_PROJECT_DIR#" coverage.xml
@@ -147,3 +149,45 @@ phpunit:
@@ -147,3 +149,45 @@ phpunit:
cd $CI_PROJECT_DIR/web/modules/custom/$CI_PROJECT_NAME; sudo -u www-data -E $CI_PROJECT_DIR/vendor/bin/infection --configuration=$CI_PROJECT_DIR/web/modules/custom/$CI_PROJECT_NAME/infection.json5.dist --skip-initial-tests --only-covering-test-cases --threads=6 --coverage=$CI_PROJECT_DIR/build/coverage --filter=$CI_PROJECT_DIR/web/modules/custom/$CI_PROJECT_NAME --logger-gitlab="$CI_PROJECT_DIR/infection-gitlab.json" --logger-html="$CI_PROJECT_DIR/mutation-report.html"
cd $CI_PROJECT_DIR/web/modules/custom/$CI_PROJECT_NAME; sudo -u www-data -E $CI_PROJECT_DIR/vendor/bin/infection --git-diff-base=$CI_MERGE_REQUEST_DIFF_BASE_SHA --git-diff-lines --configuration=$CI_PROJECT_DIR/web/modules/custom/$CI_PROJECT_NAME/infection.json5.dist --skip-initial-tests --only-covering-test-cases --threads=6 --coverage=$CI_PROJECT_DIR/build/coverage --logger-gitlab="$CI_PROJECT_DIR/infection-gitlab.json" --logger-html="$CI_PROJECT_DIR/mutation-report.html"