From 2e3d63630592088362e5f21025f4f6148d0b06f4 Mon Sep 17 00:00:00 2001 From: Jens True Date: Wed, 31 Jan 2024 16:33:35 +0000 Subject: [PATCH] Added mutation testing. --- composer.json | 6 +++--- infection.json5 | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 infection.json5 diff --git a/composer.json b/composer.json index dad7a7b..25a3a05 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ } }, "scripts": { - "test": "vendor/bin/phpunit tests --display-warnings", - "test-coverage": "vendor/bin/phpunit tests --testdox --coverage-filter src --coverage-html output/coverage --coverage-text --testdox-html output/test.html --log-junit output/test.xml", - "document": "phpDocumentor --setting=graphs.enabled=true", + "test": "vendor/bin/phpunit tests --display-warnings", + "test-coverage": "vendor/bin/phpunit tests --testdox --coverage-filter src --coverage-html output/coverage --coverage-text --testdox-html output/test.html --log-junit output/test.xml", + "document": "phpDocumentor --setting=graphs.enabled=true", "analyze": [ "@analyze-phpstan", "@analyze-psalm", diff --git a/infection.json5 b/infection.json5 new file mode 100644 index 0000000..4069223 --- /dev/null +++ b/infection.json5 @@ -0,0 +1,16 @@ +{ + "$schema": "https://raw.githubusercontent.com/infection/infection/0.27.9/resources/schema.json", + "source": { + "directories": [ + "src" + ] + }, + "logs": { + "text": "output/mutation/infection.log", + "html": "output/mutation/infection.html", + "summary": "output/mutation/summary.log", + }, + "mutators": { + "@default": true + } +} \ No newline at end of file