Skip to content

Commit

Permalink
Merge pull request #66 from acelaya-forks/feature/phpunit-11
Browse files Browse the repository at this point in the history
Remove dependency on infection and update to PHPUnit 11
  • Loading branch information
acelaya authored Feb 21, 2024
2 parents 65a9a30 + 41a1153 commit 8410abf
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 50 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
25 changes: 6 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": "<fg=blue;options=bold>Alias for \"cs\", \"stan\", \"test:ci\" and \"infect:ci\"</>",
"ci": "<fg=blue;options=bold>Alias for \"cs\", \"stan\" and \"test:ci\"</>",
"cs": "<fg=blue;options=bold>Checks coding styles</>",
"cs:fix": "<fg=blue;options=bold>Fixes coding styles, when possible</>",
"stan": "<fg=blue;options=bold>Inspects code with phpstan</>",
"test": "<fg=blue;options=bold>Runs unit tests with no coverage reports</>",
"test:ci": "<fg=blue;options=bold>Runs unit tests generating coverage reports and logs</>",
"test:pretty": "<fg=blue;options=bold>Runs unit tests generating coverage reports in html</>",
"test:infect": "<fg=blue;options=bold>Alias for \"test:ci\" and \"infect:show:ci\"</>",
"infect": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing</>",
"infect:ci": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing with existing reports and logs</>",
"infect:show": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing and shows applied mutators</>",
"infect:show:ci": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing with existing reports and logs and shows applied mutators</>"
"test:pretty": "<fg=blue;options=bold>Runs unit tests generating coverage reports in html</>"
},
"config": {
"sort-packages": true,
Expand Down
26 changes: 0 additions & 26 deletions infection.json5

This file was deleted.

0 comments on commit 8410abf

Please sign in to comment.