Skip to content

Commit f82b4ec

Browse files
committed
Update coverage configuration and build directory structure
- Modified the coverage output path in composer.json to use a directory structure. - Added XML coverage output directory in phpunit.xml for better organization. - Updated GitHub Actions workflow to create a unified build directory instead of separate logs.
1 parent d789ba0 commit f82b4ec

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/phpunits.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
- name: Prepare run test suite
125125
id: unit-prepare
126126
run: |
127-
mkdir -p build/logs
127+
mkdir -p build
128128
129129
- name: Run test suite
130130
id: unit-run

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
}
6060
},
6161
"scripts": {
62-
"parabench": "@php ./vendor/bin/testbench package:test --coverage-clover=build/clover.xml --log-junit=build/junit.xml",
62+
"parabench": "@php ./vendor/bin/testbench package:test --coverage-xml=build --log-junit=build/junit.xml",
6363
"infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases",
6464
"phpstan": [
6565
"@phpstan-src",

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<report>
1010
<clover outputFile="./build/clover.xml"/>
1111
<html outputDirectory="./build/html/"/>
12+
<xml outputDirectory="./build/"/>
1213
</report>
1314
</coverage>
1415
<testsuites>

0 commit comments

Comments
 (0)