diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8675539..e1a9e3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,7 @@ jobs: run: mkdir -p build/logs - name: Run tests - run: vendor/bin/phpunit + run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml - name: Upload test results if: always() diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0e5745a..fabfe90 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: pass_filenames: false - id: phpunit name: PHPUnit - entry: env XDEBUG_MODE=coverage vendor/bin/phpunit + entry: vendor/bin/phpunit language: system types: [php] pass_filenames: false diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 825cae9..440fb6e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,8 @@ + + + ./tests/src/Unit diff --git a/tests/fixtures/www.softwareishard.com-empty-login.har b/tests/fixtures/www.softwareishard.com-empty-login.har index 5d2bc47..12c919c 100644 --- a/tests/fixtures/www.softwareishard.com-empty-login.har +++ b/tests/fixtures/www.softwareishard.com-empty-login.har @@ -310,4 +310,4 @@ } ] } -} \ No newline at end of file +} diff --git a/tests/fixtures/www.softwareishard.com-multiple-entries.har b/tests/fixtures/www.softwareishard.com-multiple-entries.har index aeea715..88d34de 100644 --- a/tests/fixtures/www.softwareishard.com-multiple-entries.har +++ b/tests/fixtures/www.softwareishard.com-multiple-entries.har @@ -1100,4 +1100,4 @@ } ] } -} \ No newline at end of file +} diff --git a/tests/fixtures/www.softwareishard.com-single-entry.har b/tests/fixtures/www.softwareishard.com-single-entry.har index d6ab10f..af2087e 100644 --- a/tests/fixtures/www.softwareishard.com-single-entry.har +++ b/tests/fixtures/www.softwareishard.com-single-entry.har @@ -146,4 +146,4 @@ } ] } -} \ No newline at end of file +}