Skip to content

Commit

Permalink
Remove infection
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored Apr 24, 2024
1 parent c8ecf84 commit e65a83a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 49 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/infection.json export-ignore
/Makefile export-ignore
/phpstan.neon export-ignore
/phpunit.xml export-ignore
12 changes: 0 additions & 12 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ make test

to run all the tests.

## Mutation Tests

We are using [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests.

Enable `Xdebug` and run

```bash
make infection
```

to run mutation tests.

## Extra lazy?

Run
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,3 @@ jobs:
- run: vendor/bin/phpunit --coverage-clover=.build/logs/clover.xml

- uses: codecov/codecov-action@v3

mutation-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
coverage: pcov
extensions: mbstring
php-version: 8.3

- run: composer install --no-interaction --no-progress --no-suggest

- run: vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=60 --min-msi=60
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ php-cs-fixer:
mkdir --parents .build/php-cs-fixer
vendor/bin/php-cs-fixer fix --cache-file=.build/php-cs-fixer/cache

.PHONY: infection
infection: vendor ## Runs mutation tests with infection
mkdir --parents .build/infection
vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=60 --min-msi=60

.PHONY: stan
stan: vendor ## Runs a static analysis with phpstan
mkdir --parents .build/phpstan
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
},
"require-dev": {
"ergebnis/composer-normalize": "^2",
"infection/infection": "^0.26 || ^0.27",
"jangregor/phpstan-prophecy": "^1",
"mll-lab/graphql-php-scalars": "^6",
"mll-lab/php-cs-fixer-config": "^5",
Expand Down
14 changes: 0 additions & 14 deletions infection.json

This file was deleted.

0 comments on commit e65a83a

Please sign in to comment.