mirror of
https://github.com/shlinkio/shlink.git
synced 2025-12-15 14:55:04 -06:00
Remove dependency on infection and mutation tests
This commit is contained in:
parent
83f73eb631
commit
4f5ce9fb43
@ -19,7 +19,6 @@ indocker
|
|||||||
docker-*
|
docker-*
|
||||||
phpstan.neon
|
phpstan.neon
|
||||||
php*xml*
|
php*xml*
|
||||||
infection*
|
|
||||||
**/test*
|
**/test*
|
||||||
build*
|
build*
|
||||||
**/.*
|
**/.*
|
||||||
|
|||||||
44
.github/workflows/ci-mutation-tests.yml
vendored
44
.github/workflows/ci-mutation-tests.yml
vendored
@ -1,44 +0,0 @@
|
|||||||
name: Mutation tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
test-group:
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
description: One of unit, db, api or cli
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
mutation-tests:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
php-version: ['8.2', '8.3']
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: './.github/actions/ci-setup'
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php-version }}
|
|
||||||
extensions-cache-key: mutation-tests-extensions-${{ matrix.php-version }}-${{ inputs.test-group }}
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: coverage-${{ inputs.test-group }}
|
|
||||||
path: build
|
|
||||||
- name: Resolve infection args
|
|
||||||
id: infection_args
|
|
||||||
run: echo "args=--logger-github=false" >> $GITHUB_OUTPUT
|
|
||||||
# TODO Try to filter mutation tests to improve execution times. Investigate why --git-diff-lines --git-diff-base=develop does not work
|
|
||||||
# run: |
|
|
||||||
# BRANCH="${GITHUB_REF#refs/heads/}" |
|
|
||||||
# if [[ $BRANCH == 'main' || $BRANCH == 'develop' ]]; then
|
|
||||||
# echo "args=--logger-github=false" >> $GITHUB_OUTPUT
|
|
||||||
# else
|
|
||||||
# echo "args=--logger-github=false --git-diff-lines --git-diff-base=develop" >> $GITHUB_OUTPUT
|
|
||||||
# fi;
|
|
||||||
shell: bash
|
|
||||||
- if: ${{ inputs.test-group == 'unit' }}
|
|
||||||
run: composer infect:ci:unit -- ${{ steps.infection_args.outputs.args }}
|
|
||||||
env:
|
|
||||||
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
|
|
||||||
- if: ${{ inputs.test-group != 'unit' }}
|
|
||||||
run: composer infect:ci:${{ inputs.test-group }} -- ${{ steps.infection_args.outputs.args }}
|
|
||||||
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@ -8,7 +8,6 @@ on:
|
|||||||
- '*.md'
|
- '*.md'
|
||||||
- '*.xml'
|
- '*.xml'
|
||||||
- '*.yml*'
|
- '*.yml*'
|
||||||
- '*.json5'
|
|
||||||
- '*.neon'
|
- '*.neon'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -21,7 +20,6 @@ on:
|
|||||||
- '*.md'
|
- '*.md'
|
||||||
- '*.xml'
|
- '*.xml'
|
||||||
- '*.yml*'
|
- '*.yml*'
|
||||||
- '*.json5'
|
|
||||||
- '*.neon'
|
- '*.neon'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -79,34 +77,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
platform: 'ms'
|
platform: 'ms'
|
||||||
|
|
||||||
unit-mutation-tests:
|
|
||||||
needs:
|
|
||||||
- unit-tests
|
|
||||||
uses: './.github/workflows/ci-mutation-tests.yml'
|
|
||||||
with:
|
|
||||||
test-group: unit
|
|
||||||
|
|
||||||
db-mutation-tests:
|
|
||||||
needs:
|
|
||||||
- sqlite-db-tests
|
|
||||||
uses: './.github/workflows/ci-mutation-tests.yml'
|
|
||||||
with:
|
|
||||||
test-group: db
|
|
||||||
|
|
||||||
api-mutation-tests:
|
|
||||||
needs:
|
|
||||||
- api-tests
|
|
||||||
uses: './.github/workflows/ci-mutation-tests.yml'
|
|
||||||
with:
|
|
||||||
test-group: api
|
|
||||||
|
|
||||||
cli-mutation-tests:
|
|
||||||
needs:
|
|
||||||
- cli-tests
|
|
||||||
uses: './.github/workflows/ci-mutation-tests.yml'
|
|
||||||
with:
|
|
||||||
test-group: cli
|
|
||||||
|
|
||||||
upload-coverage:
|
upload-coverage:
|
||||||
needs:
|
needs:
|
||||||
- unit-tests
|
- unit-tests
|
||||||
@ -140,10 +110,6 @@ jobs:
|
|||||||
|
|
||||||
delete-artifacts:
|
delete-artifacts:
|
||||||
needs:
|
needs:
|
||||||
- unit-mutation-tests
|
|
||||||
- db-mutation-tests
|
|
||||||
- api-mutation-tests
|
|
||||||
- cli-mutation-tests
|
|
||||||
- upload-coverage
|
- upload-coverage
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@ -124,7 +124,6 @@ Depending on the kind of contribution, maybe not all kinds of tests are needed,
|
|||||||
|
|
||||||
* Run `./indocker composer test:api` to run API E2E tests. For these, the Postgres database engine is used.
|
* Run `./indocker composer test:api` to run API E2E tests. For these, the Postgres database engine is used.
|
||||||
* Run `./indocker composer test:cli` to run CLI E2E tests. For these, the Maria DB database engine is used.
|
* Run `./indocker composer test:cli` to run CLI E2E tests. For these, the Maria DB database engine is used.
|
||||||
* Run `./indocker composer infect:test` to run both unit and database tests (over sqlite) and then apply mutations to them with [infection](https://infection.github.io/).
|
|
||||||
* Run `./indocker composer ci` to run all previous commands together, parallelizing non-conflicting tasks as much as possible.
|
* Run `./indocker composer ci` to run all previous commands together, parallelizing non-conflicting tasks as much as possible.
|
||||||
|
|
||||||
## Testing endpoints
|
## Testing endpoints
|
||||||
|
|||||||
@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
[](https://github.com/shlinkio/shlink/actions/workflows/ci.yml?query=workflow%3A%22Continuous+integration%22)
|
[](https://github.com/shlinkio/shlink/actions/workflows/ci.yml?query=workflow%3A%22Continuous+integration%22)
|
||||||
[](https://app.codecov.io/gh/shlinkio/shlink)
|
[](https://app.codecov.io/gh/shlinkio/shlink)
|
||||||
[](https://dashboard.stryker-mutator.io/reports/github.com/shlinkio/shlink/develop)
|
|
||||||
[](https://packagist.org/packages/shlinkio/shlink)
|
[](https://packagist.org/packages/shlinkio/shlink)
|
||||||
[](https://hub.docker.com/r/shlinkio/shlink/)
|
[](https://hub.docker.com/r/shlinkio/shlink/)
|
||||||
[](https://github.com/shlinkio/shlink/blob/main/LICENSE)
|
[](https://github.com/shlinkio/shlink/blob/main/LICENSE)
|
||||||
|
|
||||||
[](https://twitter.com/shlinkio)
|
[](https://twitter.com/shlinkio)
|
||||||
[](https://fosstodon.org/@shlinkio)
|
[](https://fosstodon.org/@shlinkio)
|
||||||
|
[](https://bsky.app/profile/shlinkio.bsky.social)
|
||||||
[](https://slnk.to/donate)
|
[](https://slnk.to/donate)
|
||||||
|
|
||||||
A PHP-based self-hosted URL shortener that can be used to serve shortened URLs under your own domain.
|
A PHP-based self-hosted URL shortener that can be used to serve shortened URLs under your own domain.
|
||||||
|
|||||||
@ -22,7 +22,7 @@ echo 'Starting server...'
|
|||||||
-o=logs.channels.server.output="${PWD}/${OUTPUT_LOGS}" &
|
-o=logs.channels.server.output="${PWD}/${OUTPUT_LOGS}" &
|
||||||
sleep 2 # Let's give the server a couple of seconds to start
|
sleep 2 # Let's give the server a couple of seconds to start
|
||||||
|
|
||||||
vendor/bin/phpunit --order-by=random -c phpunit-api.xml --testdox --colors=always --log-junit=build/coverage-api/junit.xml $*
|
vendor/bin/phpunit --order-by=random -c phpunit-api.xml --testdox --colors=always $*
|
||||||
TESTS_EXIT_CODE=$?
|
TESTS_EXIT_CODE=$?
|
||||||
|
|
||||||
[ "$TEST_RUNTIME" = 'rr' ] && bin/rr stop -c=config/roadrunner/.rr.dev.yml -w . -o=http.address=0.0.0.0:9999
|
[ "$TEST_RUNTIME" = 'rr' ] && bin/rr stop -c=config/roadrunner/.rr.dev.yml -w . -o=http.address=0.0.0.0:9999
|
||||||
|
|||||||
@ -62,7 +62,6 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"devizzent/cebe-php-openapi": "^1.0.1",
|
"devizzent/cebe-php-openapi": "^1.0.1",
|
||||||
"devster/ubench": "^2.1",
|
"devster/ubench": "^2.1",
|
||||||
"infection/infection": "^0.27",
|
|
||||||
"phpstan/phpstan": "^1.10",
|
"phpstan/phpstan": "^1.10",
|
||||||
"phpstan/phpstan-doctrine": "^1.3",
|
"phpstan/phpstan-doctrine": "^1.3",
|
||||||
"phpstan/phpstan-phpunit": "^1.3",
|
"phpstan/phpstan-phpunit": "^1.3",
|
||||||
@ -108,8 +107,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ci": [
|
"ci": [
|
||||||
"@parallel cs stan swagger:validate test:unit:ci test:db:sqlite:ci test:db:mysql test:db:maria test:db:postgres test:db:ms",
|
"@parallel cs stan swagger:validate test:unit:ci test:db:sqlite:ci test:db:postgres test:db:mysql test:db:maria test:db:ms",
|
||||||
"@parallel infect:test:api infect:test:cli infect:ci:unit infect:ci:db"
|
"@parallel test:api:ci test:cli:ci"
|
||||||
],
|
],
|
||||||
"cs": "phpcs -s",
|
"cs": "phpcs -s",
|
||||||
"cs:fix": "phpcbf",
|
"cs:fix": "phpcbf",
|
||||||
@ -119,53 +118,27 @@
|
|||||||
"@parallel test:api test:cli"
|
"@parallel test:api test:cli"
|
||||||
],
|
],
|
||||||
"test:unit": "@php vendor/bin/phpunit --order-by=random --colors=always --testdox",
|
"test:unit": "@php vendor/bin/phpunit --order-by=random --colors=always --testdox",
|
||||||
"test:unit:ci": "@test:unit --coverage-php=build/coverage-unit.cov --coverage-xml=build/coverage-unit/coverage-xml --log-junit=build/coverage-unit/junit.xml",
|
"test:unit:ci": "@test:unit --coverage-php=build/coverage-unit.cov",
|
||||||
"test:unit:pretty": "@test:unit --coverage-html build/coverage-unit/coverage-html",
|
"test:unit:pretty": "@test:unit --coverage-html build/coverage-unit/coverage-html",
|
||||||
"test:db": "@parallel test:db:sqlite:ci test:db:mysql test:db:maria test:db:postgres test:db:ms",
|
"test:db": "@parallel test:db:sqlite:ci test:db:mysql test:db:maria test:db:postgres test:db:ms",
|
||||||
"test:db:sqlite": "APP_ENV=test php vendor/bin/phpunit --order-by=random --colors=always --testdox -c phpunit-db.xml",
|
"test:db:sqlite": "APP_ENV=test php vendor/bin/phpunit --order-by=random --colors=always --testdox -c phpunit-db.xml",
|
||||||
"test:db:sqlite:ci": "@test:db:sqlite --coverage-php build/coverage-db.cov --coverage-xml=build/coverage-db/coverage-xml --log-junit=build/coverage-db/junit.xml",
|
"test:db:sqlite:ci": "@test:db:sqlite --coverage-php build/coverage-db.cov",
|
||||||
"test:db:mysql": "DB_DRIVER=mysql composer test:db:sqlite",
|
"test:db:mysql": "DB_DRIVER=mysql composer test:db:sqlite",
|
||||||
"test:db:maria": "DB_DRIVER=maria composer test:db:sqlite",
|
"test:db:maria": "DB_DRIVER=maria composer test:db:sqlite",
|
||||||
"test:db:postgres": "DB_DRIVER=postgres composer test:db:sqlite",
|
"test:db:postgres": "DB_DRIVER=postgres composer test:db:sqlite",
|
||||||
"test:db:ms": "DB_DRIVER=mssql composer test:db:sqlite",
|
"test:db:ms": "DB_DRIVER=mssql composer test:db:sqlite",
|
||||||
"test:api": "bin/test/run-api-tests.sh",
|
"test:api": "bin/test/run-api-tests.sh",
|
||||||
"test:api:ci": "GENERATE_COVERAGE=yes composer test:api && vendor/bin/phpcov merge build/coverage-api --xml build/coverage-api/coverage-xml --php build/coverage-api.cov && rm build/coverage-api/*.cov",
|
"test:api:ci": "GENERATE_COVERAGE=yes composer test:api && vendor/bin/phpcov merge build/coverage-api --php build/coverage-api.cov && rm build/coverage-api/*.cov",
|
||||||
"test:api:pretty": "GENERATE_COVERAGE=yes composer test:api && vendor/bin/phpcov merge build/coverage-api --html build/coverage-api/coverage-html && rm build/coverage-api/*.cov",
|
"test:api:pretty": "GENERATE_COVERAGE=yes composer test:api && vendor/bin/phpcov merge build/coverage-api --html build/coverage-api/coverage-html && rm build/coverage-api/*.cov",
|
||||||
"test:cli": "APP_ENV=test DB_DRIVER=maria TEST_ENV=cli php vendor/bin/phpunit --order-by=random --colors=always --testdox -c phpunit-cli.xml --log-junit=build/coverage-cli/junit.xml",
|
"test:cli": "APP_ENV=test DB_DRIVER=maria TEST_ENV=cli php vendor/bin/phpunit --order-by=random --colors=always --testdox -c phpunit-cli.xml",
|
||||||
"test:cli:ci": "GENERATE_COVERAGE=yes composer test:cli && vendor/bin/phpcov merge build/coverage-cli --xml build/coverage-cli/coverage-xml --php build/coverage-cli.cov && rm build/coverage-cli/*.cov",
|
"test:cli:ci": "GENERATE_COVERAGE=yes composer test:cli && vendor/bin/phpcov merge build/coverage-cli --php build/coverage-cli.cov && rm build/coverage-cli/*.cov",
|
||||||
"test:cli:pretty": "GENERATE_COVERAGE=yes composer test:cli && vendor/bin/phpcov merge build/coverage-cli --html build/coverage-cli/coverage-html && rm build/coverage-cli/*.cov",
|
"test:cli:pretty": "GENERATE_COVERAGE=yes composer test:cli && vendor/bin/phpcov merge build/coverage-cli --html build/coverage-cli/coverage-html && rm build/coverage-cli/*.cov",
|
||||||
"infect:ci:base": "infection --threads=max --only-covered --skip-initial-tests",
|
|
||||||
"infect:ci:unit": "@infect:ci:base --coverage=build/coverage-unit --min-msi=80",
|
|
||||||
"infect:ci:db": "@infect:ci:base --coverage=build/coverage-db --min-msi=95 --configuration=infection-db.json5",
|
|
||||||
"infect:ci:api": "@infect:ci:base --coverage=build/coverage-api --min-msi=95 --configuration=infection-api.json5",
|
|
||||||
"infect:ci:cli": "@infect:ci:base --coverage=build/coverage-cli --min-msi=90 --configuration=infection-cli.json5",
|
|
||||||
"infect:ci": "@parallel infect:ci:unit infect:ci:db infect:ci:api infect:ci:cli",
|
|
||||||
"infect:test": [
|
|
||||||
"@parallel test:unit:ci test:db:sqlite:ci test:api:ci",
|
|
||||||
"@infect:ci"
|
|
||||||
],
|
|
||||||
"infect:test:unit": [
|
|
||||||
"@test:unit:ci",
|
|
||||||
"@infect:ci:unit"
|
|
||||||
],
|
|
||||||
"infect:test:db": [
|
|
||||||
"@test:db:sqlite:ci",
|
|
||||||
"@infect:ci:db"
|
|
||||||
],
|
|
||||||
"infect:test:api": [
|
|
||||||
"@test:api:ci",
|
|
||||||
"@infect:ci:api"
|
|
||||||
],
|
|
||||||
"infect:test:cli": [
|
|
||||||
"@test:cli:ci",
|
|
||||||
"@infect:ci:cli"
|
|
||||||
],
|
|
||||||
"swagger:validate": "php-openapi validate docs/swagger/swagger.json",
|
"swagger:validate": "php-openapi validate docs/swagger/swagger.json",
|
||||||
"swagger:inline": "php-openapi inline docs/swagger/swagger.json docs/swagger/swagger-inlined.json",
|
"swagger:inline": "php-openapi inline docs/swagger/swagger.json docs/swagger/swagger-inlined.json",
|
||||||
"clean:dev": "rm -f data/database.sqlite && rm -f config/params/generated_config.php"
|
"clean:dev": "rm -f data/database.sqlite && rm -f config/params/generated_config.php"
|
||||||
},
|
},
|
||||||
"scripts-descriptions": {
|
"scripts-descriptions": {
|
||||||
"ci": "<fg=blue;options=bold>Alias for \"cs\", \"stan\", \"swagger:validate\", \"test:ci\" and \"infect:ci\"</>",
|
"ci": "<fg=blue;options=bold>Alias for \"cs\", \"stan\", \"swagger:validate\" and \"test:ci\"</>",
|
||||||
"cs": "<fg=blue;options=bold>Checks coding styles</>",
|
"cs": "<fg=blue;options=bold>Checks coding styles</>",
|
||||||
"cs:fix": "<fg=blue;options=bold>Fixes coding styles, when possible</>",
|
"cs:fix": "<fg=blue;options=bold>Fixes coding styles, when possible</>",
|
||||||
"stan": "<fg=blue;options=bold>Inspects code with phpstan</>",
|
"stan": "<fg=blue;options=bold>Inspects code with phpstan</>",
|
||||||
@ -186,10 +159,6 @@
|
|||||||
"test:cli": "<fg=blue;options=bold>Runs CLI test suites</>",
|
"test:cli": "<fg=blue;options=bold>Runs CLI test suites</>",
|
||||||
"test:cli:ci": "<fg=blue;options=bold>Runs CLI test suites, and generates code coverage for CI</>",
|
"test:cli:ci": "<fg=blue;options=bold>Runs CLI test suites, and generates code coverage for CI</>",
|
||||||
"test:cli:pretty": "<fg=blue;options=bold>Runs CLI test suites, and generates code coverage in HTML format</>",
|
"test:cli:pretty": "<fg=blue;options=bold>Runs CLI test suites, and generates code coverage in HTML format</>",
|
||||||
"infect:ci": "<fg=blue;options=bold>Checks unit and db tests quality applying mutation testing with existing reports and logs</>",
|
|
||||||
"infect:ci:unit": "<fg=blue;options=bold>Checks unit tests quality applying mutation testing with existing reports and logs</>",
|
|
||||||
"infect:ci:db": "<fg=blue;options=bold>Checks db tests quality applying mutation testing with existing reports and logs</>",
|
|
||||||
"infect:test": "<fg=blue;options=bold>Runs unit and db tests, then checks tests quality applying mutation testing</>",
|
|
||||||
"swagger:validate": "<fg=blue;options=bold>Validates the swagger docs, making sure they fulfil the spec</>",
|
"swagger:validate": "<fg=blue;options=bold>Validates the swagger docs, making sure they fulfil the spec</>",
|
||||||
"swagger:inline": "<fg=blue;options=bold>Inlines swagger docs in a single file</>",
|
"swagger:inline": "<fg=blue;options=bold>Inlines swagger docs in a single file</>",
|
||||||
"clean:dev": "<fg=blue;options=bold>Deletes artifacts which are gitignored and could affect dev env</>"
|
"clean:dev": "<fg=blue;options=bold>Deletes artifacts which are gitignored and could affect dev env</>"
|
||||||
@ -200,7 +169,6 @@
|
|||||||
"allow-plugins": {
|
"allow-plugins": {
|
||||||
"composer/package-versions-deprecated": true,
|
"composer/package-versions-deprecated": true,
|
||||||
"dealerdirect/phpcodesniffer-composer-installer": true,
|
"dealerdirect/phpcodesniffer-composer-installer": true,
|
||||||
"infection/extension-installer": true,
|
|
||||||
"veewee/composer-run-parallel": true
|
"veewee/composer-run-parallel": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
source: {
|
|
||||||
directories: [
|
|
||||||
'module/*/src'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
timeout: 5,
|
|
||||||
logs: {
|
|
||||||
text: 'build/infection-api/infection-log.txt',
|
|
||||||
html: 'build/infection-api/infection-log.html',
|
|
||||||
summary: 'build/infection-api/summary-log.txt',
|
|
||||||
debug: 'build/infection-api/debug-log.txt'
|
|
||||||
},
|
|
||||||
tmpDir: 'build/infection-api/temp',
|
|
||||||
phpUnit: {
|
|
||||||
configDir: '.'
|
|
||||||
},
|
|
||||||
testFrameworkOptions: '--configuration=phpunit-api.xml',
|
|
||||||
mutators: {
|
|
||||||
'@default': true,
|
|
||||||
IdenticalEqual: false,
|
|
||||||
NotIdenticalNotEqual: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
source: {
|
|
||||||
directories: [
|
|
||||||
'module/*/src'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
timeout: 5,
|
|
||||||
logs: {
|
|
||||||
text: 'build/infection-cli/infection-log.txt',
|
|
||||||
html: 'build/infection-cli/infection-log.html',
|
|
||||||
summary: 'build/infection-cli/summary-log.txt',
|
|
||||||
debug: 'build/infection-cli/debug-log.txt'
|
|
||||||
},
|
|
||||||
tmpDir: 'build/infection-cli/temp',
|
|
||||||
phpUnit: {
|
|
||||||
configDir: '.'
|
|
||||||
},
|
|
||||||
testFrameworkOptions: '--configuration=phpunit-cli.xml',
|
|
||||||
mutators: {
|
|
||||||
'@default': true,
|
|
||||||
IdenticalEqual: false,
|
|
||||||
NotIdenticalNotEqual: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
source: {
|
|
||||||
directories: [
|
|
||||||
'module/*/src'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
timeout: 5,
|
|
||||||
logs: {
|
|
||||||
text: 'build/infection-db/infection-log.txt',
|
|
||||||
html: 'build/infection-db/infection-log.html',
|
|
||||||
summary: 'build/infection-db/summary-log.txt',
|
|
||||||
debug: 'build/infection-db/debug-log.txt'
|
|
||||||
},
|
|
||||||
tmpDir: 'build/infection-db/temp',
|
|
||||||
phpUnit: {
|
|
||||||
configDir: '.'
|
|
||||||
},
|
|
||||||
testFrameworkOptions: '--configuration=phpunit-db.xml',
|
|
||||||
mutators: {
|
|
||||||
'@default': true,
|
|
||||||
IdenticalEqual: false,
|
|
||||||
NotIdenticalNotEqual: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
source: {
|
|
||||||
directories: [
|
|
||||||
'module/*/src'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
timeout: 5,
|
|
||||||
logs: {
|
|
||||||
text: 'build/infection-unit/infection-log.txt',
|
|
||||||
html: 'build/infection-unit/infection-log.html',
|
|
||||||
summary: 'build/infection-unit/summary-log.txt',
|
|
||||||
debug: 'build/infection-unit/debug-log.txt',
|
|
||||||
stryker: {
|
|
||||||
report: 'develop'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
tmpDir: 'build/infection-unit/temp',
|
|
||||||
phpUnit: {
|
|
||||||
configDir: '.'
|
|
||||||
},
|
|
||||||
mutators: {
|
|
||||||
'@default': true,
|
|
||||||
IdenticalEqual: false,
|
|
||||||
NotIdenticalNotEqual: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user