From cad730c3526a20f762c802eca3f8ec2d7ea91a46 Mon Sep 17 00:00:00 2001 From: Andrew Berry Date: Sun, 14 Dec 2025 16:00:02 -0500 Subject: [PATCH 1/2] ci: clean up phpunit logging --- .github/workflows/test.yml | 2 +- .pre-commit-config.yaml | 2 +- phpunit.xml.dist | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) 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 From 40066199ef58866ff4ff447704385a6a91d6a027 Mon Sep 17 00:00:00 2001 From: Andrew Berry Date: Sun, 14 Dec 2025 16:00:16 -0500 Subject: [PATCH 2/2] chore: fix newlines --- tests/fixtures/www.softwareishard.com-empty-login.har | 2 +- tests/fixtures/www.softwareishard.com-multiple-entries.har | 2 +- tests/fixtures/www.softwareishard.com-single-entry.har | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 +}