diff --git a/.gitattributes b/.gitattributes index eea2583..c49537b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11,7 +11,6 @@ docker-compose.override.yml.dist export-ignore docker-compose.yml export-ignore Dockerfile export-ignore indocker export-ignore -infection.json export-ignore phpcs.xml export-ignore phpstan.neon export-ignore phpunit.xml.dist export-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10ec1df..9d18ee1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,5 +10,5 @@ on: jobs: ci: uses: shlinkio/github-actions/.github/workflows/php-lib-ci.yml@main - secrets: - INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }} + with: + mutation-tests: false diff --git a/CHANGELOG.md b/CHANGELOG.md index d7dab69..cd8b142 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this * Remove config options related with webhooks. * Remove config option to decode redis credentials. * Remove support for openswoole. +* Remove infection and mutation tests. ### Fixed * *Nothing* diff --git a/README.md b/README.md index 2b4986f..4f7e214 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ A PHP command line tool used to install [shlink](https://shlink.io/). [![Build Status](https://img.shields.io/github/actions/workflow/status/shlinkio/shlink-installer/ci.yml?branch=develop&logo=github&style=flat-square)](https://github.com/shlinkio/shlink-installer/actions/workflows/ci.yml?query=workflow%3A%22Continuous+integration%22) [![Code Coverage](https://img.shields.io/codecov/c/gh/shlinkio/shlink-installer/develop?style=flat-square)](https://app.codecov.io/gh/shlinkio/shlink-installer) -[![Infection MSI](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fshlinkio%2Fshlink-installer%2Fdevelop)](https://dashboard.stryker-mutator.io/reports/github.com/shlinkio/shlink-installer/develop) [![Latest Stable Version](https://img.shields.io/github/release/shlinkio/shlink-installer.svg?style=flat-square)](https://packagist.org/packages/shlinkio/shlink-installer) [![License](https://img.shields.io/github/license/shlinkio/shlink-installer.svg?style=flat-square)](https://github.com/shlinkio/shlink-installer/blob/main/LICENSE) [![Paypal donate](https://img.shields.io/badge/Donate-paypal-blue.svg?style=flat-square&logo=paypal&colorA=aaaaaa)](https://slnk.to/donate) diff --git a/composer.json b/composer.json index 0ca5eb7..9f179fb 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,6 @@ }, "require-dev": { "devster/ubench": "^2.1", - "infection/infection": "^0.27.9", "phpstan/phpstan": "^1.10", "phpstan/phpstan-phpunit": "^1.3", "phpunit/phpunit": "^10.5", @@ -46,35 +45,23 @@ "ci": [ "@cs", "@stan", - "@test:ci", - "@infect:ci" + "@test:ci" ], "cs": "phpcs", "cs:fix": "phpcbf", "stan": "phpstan analyse src test test-resources config --level=8", "test": "phpunit --order-by=random --testdox --colors=always", - "test:ci": "@test --coverage-clover=build/clover.xml --coverage-xml=build/coverage-xml --log-junit=build/junit.xml", - "test:pretty": "@test --coverage-html build/coverage-html", - "infect": "infection --threads=4 --min-msi=90 --log-verbosity=default --only-covered", - "infect:ci": "@infect --coverage=build --skip-initial-tests", - "infect:show": "@infect --show-mutations", - "infect:show:ci": "@infect --show-mutations --coverage=build", - "infect:test": [ - "@test:ci", - "@infect:show:ci" - ] + "test:ci": "@test --coverage-clover=build/clover.xml", + "test:pretty": "@test --coverage-html=build/coverage-html" }, "scripts-descriptions": { - "ci": "Alias for \"cs\", \"stan\", \"test:ci\" and \"infect:ci\"", + "ci": "Alias for \"cs\", \"stan\" and \"test:ci\"", "cs": "Checks coding styles", "cs:fix": "Fixes coding styles, when possible", "stan": "Inspects code with phpstan", "test": "Runs unit tests with no coverage reports", "test:ci": "Runs unit tests generating coverage reports and logs", - "test:pretty": "Runs unit tests generating coverage reports in html", - "infect": "Checks unit tests quality applying mutation testing", - "infect:ci": "Checks unit tests quality applying mutation testing with existing reports and logs", - "infect:show": "Checks unit tests quality applying mutation testing and shows applied mutators" + "test:pretty": "Runs unit tests generating coverage reports in html" }, "config": { "sort-packages": true, diff --git a/infection.json5 b/infection.json5 deleted file mode 100644 index 8bd2f44..0000000 --- a/infection.json5 +++ /dev/null @@ -1,26 +0,0 @@ -{ - source: { - directories: [ - 'src' - ] - }, - timeout: 5, - logs: { - text: 'build/infection/infection-log.txt', - html: 'build/infection/infection-log.html', - summary: 'build/infection/summary-log.txt', - debug: 'build/infection/debug-log.txt', - stryker: { - report: 'develop' - } - }, - tmpDir: 'build/infection/temp', - phpUnit: { - configDir: '.' - }, - mutators: { - '@default': true, - IdenticalEqual: false, - NotIdenticalNotEqual: false - } -}