From a723eaec4d572ddda59e80f856f59cc5f12ed6d0 Mon Sep 17 00:00:00 2001 From: Renato Dehnhardt Date: Sun, 26 Jan 2025 20:10:44 +0100 Subject: [PATCH 1/2] test: add HTML coverage report configuration to PHPUnit Enable HTML coverage reporting by specifying an output directory in `phpunit.xml`. The reports will be stored in `storage/logs/coverage` for easier access and analysis of test coverage. --- phpunit.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpunit.xml b/phpunit.xml index 61c031c..d01a673 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -30,4 +30,9 @@ + + + + + From 835e81776b8227db1ef9378cc34b364ddf3d1a23 Mon Sep 17 00:00:00 2001 From: Renato Dehnhardt Date: Sun, 26 Jan 2025 20:57:48 +0100 Subject: [PATCH 2/2] test: include App\Events in architecture test namespaces Add App\Events to the list of namespaces covered by architecture tests. Readonly classes cannot use trait with a non-readonly property like Illuminate\Broadcasting\InteractsWithSockets::$socket --- tests/Unit/ArchTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Unit/ArchTest.php b/tests/Unit/ArchTest.php index 6a06dc7..73fa62c 100644 --- a/tests/Unit/ArchTest.php +++ b/tests/Unit/ArchTest.php @@ -20,6 +20,7 @@ 'App\Exceptions', 'App\Jobs', 'App\Models', + 'App\Events', 'App\Providers', 'App\Services', ]);