From ac9db2e2c1246b13d103495176ca26a91b2263ad Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 30 May 2022 16:03:48 +0200 Subject: [PATCH] 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. --- .gitignore | 2 +- Resources/Private/Configs/phpunit.xml.dist | 30 ++++++++++++++++++++++ composer.json | 6 +++++ readme.rst | 6 +---- 4 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 Resources/Private/Configs/phpunit.xml.dist diff --git a/.gitignore b/.gitignore index f950a50..7b61981 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ typo3 /Tests /Results infection* -phpunit.xml.dist +/phpunit.xml.dist debug-log.txt per-mutator.md summary-log.txt diff --git a/Resources/Private/Configs/phpunit.xml.dist b/Resources/Private/Configs/phpunit.xml.dist new file mode 100644 index 0000000..7b93a5c --- /dev/null +++ b/Resources/Private/Configs/phpunit.xml.dist @@ -0,0 +1,30 @@ + + + + + + Tests/Unit/ + + + + + + Classes + + + diff --git a/composer.json b/composer.json index e0b065c..42b3d9a 100644 --- a/composer.json +++ b/composer.json @@ -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 + } } } diff --git a/readme.rst b/readme.rst index bd9955b..c9c0fc3 100644 --- a/readme.rst +++ b/readme.rst @@ -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/