Skip to content
This repository has been archived by the owner on Jan 2, 2022. It is now read-only.

Commit

Permalink
Added infection tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Jun 5, 2020
1 parent 405bfe2 commit 3b9256e
Show file tree
Hide file tree
Showing 10 changed files with 874 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,25 @@ jobs:

- name: Run PHPUnit test suite
run: composer run-script test

mutation-tests:
name: "Mutation Tests"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache composer dependencies
uses: actions/cache@v1.1.0
with:
path: vendor
key: composer@${{ hashFiles('**/composer.lock') }}

- name: Run Infection
run: composer run-script infect
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
vendor/
psalm.xml
infection.json
12 changes: 12 additions & 0 deletions .idea/Philly.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# [![Version](https://poser.pugx.org/ricardoboss/philly/version)](https://packagist.org/packages/ricardoboss/philly) [![License](https://poser.pugx.org/ricardoboss/philly/license)](https://packagist.org/packages/ricardoboss/philly) [![Coverage](https://shepherd.dev/github/ricardoboss/philly/coverage.svg)](https://shepherd.dev/github/ricardoboss/philly) [![PHPUnit Tests](https://github.com/ricardoboss/Philly/workflows/PHPUnit%20Tests/badge.svg)](https://github.com/ricardoboss/Philly/actions)

[![Version](https://poser.pugx.org/ricardoboss/philly/version)](https://packagist.org/packages/ricardoboss/philly) [![License](https://poser.pugx.org/ricardoboss/philly/license)](https://packagist.org/packages/ricardoboss/philly) [![Coverage](https://shepherd.dev/github/ricardoboss/philly/coverage.svg)](https://shepherd.dev/github/ricardoboss/philly) [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fricardoboss%2FPhilly%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/ricardoboss/Philly/master) [![PHPUnit Tests](https://github.com/ricardoboss/Philly/workflows/PHPUnit%20Tests/badge.svg)](https://github.com/ricardoboss/Philly/actions)

<p align="center">
<a href="https://philly.ricardoboss.de" target="_blank">
Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"require-dev": {
"phpunit/phpunit": "^9.1",
"vimeo/psalm": "^3.11",
"nunomaduro/collision": "^4.2"
"nunomaduro/collision": "^4.2",
"infection/infection": "^0.16.3"
},
"license": "MIT",
"authors": [
Expand All @@ -33,7 +34,8 @@
}
},
"scripts": {
"test": "phpunit --configuration ./phpunit.xml --coverage-text",
"stan": "psalm --output-format=github --shepherd"
"test": "phpunit --configuration ./phpunit.xml.dist --coverage-text",
"stan": "psalm --config=psalm.xml.dist --output-format=github --shepherd",
"infect": "infection"
}
}
Loading

0 comments on commit 3b9256e

Please sign in to comment.