From 8675e2604379cd07327467ab54a108537cd23575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Mon, 23 Oct 2023 11:41:21 +0200 Subject: [PATCH] Add infection --- README.md | 3 +++ composer.json | 4 +++- infection.json.dist | 16 ++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 infection.json.dist diff --git a/README.md b/README.md index 6751b08..5c5ec81 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Software License][ico-license]](LICENSE) [![Build Status][ico-github-actions]][link-github-actions] [![Code Coverage][ico-code-coverage]][link-code-coverage] +[![Mutation testing][ico-infection]][link-infection] [Setono](https://setono.com) have made a bunch of [plugins for Sylius](https://github.com/Setono), and we have some guidelines which we try to follow when developing plugins. These guidelines are used in this repository, and it gives you a very @@ -44,7 +45,9 @@ To be able to setup a plugin's database, remember to configure you database cred [ico-license]: https://poser.pugx.org/setono/sylius-plugin-skeleton/license [ico-github-actions]: https://github.com/Setono/SyliusPluginSkeleton/workflows/build/badge.svg [ico-code-coverage]: https://codecov.io/gh/Setono/SyliusPluginSkeleton/branch/1.12.x/graph/badge.svg +[ico-infection]: https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FSetono%2FSyliusPluginSkeleton%2F1.12.x [link-packagist]: https://packagist.org/packages/setono/sylius-plugin-skeleton [link-github-actions]: https://github.com/Setono/SyliusPluginSkeleton/actions [link-code-coverage]: https://codecov.io/gh/Setono/SyliusPluginSkeleton +[link-infection]: https://dashboard.stryker-mutator.io/reports/github.com/Setono/SyliusPluginSkeleton/1.12.x diff --git a/composer.json b/composer.json index fc62479..776f540 100644 --- a/composer.json +++ b/composer.json @@ -19,6 +19,7 @@ "babdev/pagerfanta-bundle": "^3.8", "behat/behat": "^3.12", "doctrine/doctrine-bundle": "^2.10", + "infection/infection": "^0.26.3", "jms/serializer-bundle": "^4.2", "lexik/jwt-authentication-bundle": "^2.16", "matthiasnoback/symfony-config-test": "^4.3", @@ -54,7 +55,8 @@ "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": false, "ergebnis/composer-normalize": true, - "symfony/thanks": false + "symfony/thanks": false, + "infection/extension-installer": true }, "sort-packages": true }, diff --git a/infection.json.dist b/infection.json.dist new file mode 100644 index 0000000..c52ab2d --- /dev/null +++ b/infection.json.dist @@ -0,0 +1,16 @@ +{ + "source": { + "directories": [ + "src" + ] + }, + "logs": { + "text": "php://stderr", + "github": true, + "stryker": { + "badge": "1.12.x" + } + }, + "minMsi": 70.23, + "minCoveredMsi": 94.23 +}