Commit 2decf7a4 authored by Benni Mack's avatar Benni Mack

Merge branch 'task/add-code-coverage' into 'develop'

Update unit test config and GitLab CI job to show code coverage

See merge request !572
parents d1ce4d6b 51a538ef
Pipeline #9578 passed with stages
in 7 minutes and 12 seconds
......@@ -23,12 +23,17 @@ variables:
test:unit:
stage: test
image: composer:1
image: php:7.4
variables:
GIT_STRATEGY: "clone"
GIT_SUBMODULE_STRATEGY: "recursive"
before_script:
- apk add git --update
- set -xe
- apt-get update -yqq
- apt-get install git unzip zlib1g-dev libzip-dev -yqq
- docker-php-ext-install zip
- pecl install xdebug
- docker-php-ext-enable xdebug
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- export TYPO3_PATH_WEB="$PWD/private"
- composer config cache-dir /cache/composer
- mkdir $TYPO3_PATH_WEB/fileadmin/ && touch $TYPO3_PATH_WEB/fileadmin/currentcoredata.json
......
......@@ -2,7 +2,7 @@
backupGlobals="true"
backupStaticAttributes="false"
bootstrap="../../vendor/nimut/testing-framework/res/Configuration/UnitTestsBootstrap.php"
colors="true"
colors="false"
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
......@@ -23,4 +23,8 @@
<directory suffix=".php">../../extensions/ter_fe2/Classes/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
<log type="junit" target="../../build/junit-report.xml"/>
</logging>
</phpunit>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment