diff --git a/.gitattributes b/.gitattributes index 49669d1..537ef7d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,6 +7,5 @@ CHANGELOG.md export-ignore docker-compose.override.yml.dist export-ignore docker-compose.yml export-ignore indocker export-ignore -infection.json export-ignore phpcs.xml export-ignore phpunit.xml.dist export-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d466edf..fce44bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,5 +9,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 01c805f..6e631ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,12 +10,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this ### Changed * Update dependencies +* Update to PHPUnit 11 ### Deprecated * *Nothing* ### Removed -* *Nothing* +* Remove infection and mutation tests. ### Fixed * *Nothing* diff --git a/README.md b/README.md index c7b9bdf..a2c3392 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ Collection of tools to import links from different sources and map them to a shl [![Build Status](https://img.shields.io/github/actions/workflow/status/shlinkio/shlink-importer/ci.yml?branch=main&logo=github&style=flat-square)](https://github.com/shlinkio/shlink-importer/actions/workflows/ci.yml?query=workflow%3A%22Continuous+integration%22) [![Code Coverage](https://img.shields.io/codecov/c/gh/shlinkio/shlink-importer/main?style=flat-square)](https://app.codecov.io/gh/shlinkio/shlink-importer) -[![Infection MSI](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fshlinkio%2Fshlink-importer%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/shlinkio/shlink-importer/main) [![Latest Stable Version](https://img.shields.io/github/release/shlinkio/shlink-importer.svg?style=flat-square)](https://packagist.org/packages/shlinkio/shlink-importer) [![License](https://img.shields.io/github/license/shlinkio/shlink-importer.svg?style=flat-square)](https://github.com/shlinkio/shlink-importer/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 7d86e9d..8c9074a 100644 --- a/composer.json +++ b/composer.json @@ -22,10 +22,9 @@ }, "require-dev": { "guzzlehttp/guzzle": "^7.8", - "infection/infection": "^0.27.9", "phpstan/phpstan": "^1.10", "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^10.5", + "phpunit/phpunit": "^11.0", "psr/http-factory": "^1.0", "roave/security-advisories": "dev-master", "shlinkio/php-coding-standard": "~2.3.0", @@ -49,35 +48,23 @@ "ci": [ "@cs", "@stan", - "@test:ci", - "@infect:ci" + "@test:ci" ], "cs": "phpcs", "cs:fix": "phpcbf", "stan": "phpstan analyse src test 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=80 --log-verbosity=default --only-covered", - "infect:ci": "@infect --coverage=build --skip-initial-tests", - "infect:test": [ - "@test:ci", - "@infect: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", - "test:infect": "Alias for \"test:ci\" and \"infect:show:ci\"", - "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", - "infect:show:ci": "Checks unit tests quality applying mutation testing with existing reports and logs 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 bcb10ed..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: 'main' - } - }, - tmpDir: 'build/infection/temp', - phpUnit: { - configDir: '.' - }, - mutators: { - '@default': true, - IdenticalEqual: false, - NotIdenticalNotEqual: false - } -}