Update setup

Provide missing example file for copying.
Fix .gitignore to only ignore copied file, not source.
Update composer.json to run through, allowing the plugins.
Remove not provided infection example.
This commit is contained in:
Daniel Siepmann 2022-05-30 16:03:48 +02:00
parent d933b207fa
commit ac9db2e2c1
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
4 changed files with 38 additions and 6 deletions

2
.gitignore vendored
View file

@ -5,7 +5,7 @@ typo3
/Tests
/Results
infection*
phpunit.xml.dist
/phpunit.xml.dist
debug-log.txt
per-mutator.md
summary-log.txt

View file

@ -0,0 +1,30 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
verbose="false"
>
<testsuites>
<testsuite name="unit">
<directory>Tests/Unit/</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">Classes</directory>
</include>
</coverage>
</phpunit>

View file

@ -26,5 +26,11 @@
"require-dev": {
"phpunit/phpunit": "^9.3",
"phpspec/prophecy-phpunit": "^2.0"
},
"config": {
"allow-plugins": {
"typo3/class-alias-loader": true,
"typo3/cms-composer-installers": true
}
}
}

View file

@ -287,11 +287,7 @@ Tests from user view, e.g. via browser.
Mutation testing
^^^^^^^^^^^^^^^^
Tests how easy it is to break test::
cp Resources/Private/Configs/infection.json.dist infection.json.dist
./vendor/bin/infection
Tests how easy it is to break test.
* https://infection.github.io/