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:
parent
d933b207fa
commit
ac9db2e2c1
4 changed files with 38 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,7 +5,7 @@ typo3
|
|||
/Tests
|
||||
/Results
|
||||
infection*
|
||||
phpunit.xml.dist
|
||||
/phpunit.xml.dist
|
||||
debug-log.txt
|
||||
per-mutator.md
|
||||
summary-log.txt
|
||||
|
|
30
Resources/Private/Configs/phpunit.xml.dist
Normal file
30
Resources/Private/Configs/phpunit.xml.dist
Normal 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>
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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/
|
||||
|
||||
|
|
Loading…
Reference in a new issue