Skip to content

Commit

Permalink
[MetricsPower] Added unit and feature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalzombie committed Mar 27, 2024
1 parent b9f183f commit d2dcdff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ jobs:
run: mkdir -p build/logs

- name: Execute unit tests
run: ./vendor/bin/pest --colors=always --configuration phpunit.xml.dist --coverage-cobertura tests-cobertura.xml --coverage-clover tests-coverage.xml --log-junit tests-execution.xml

- name: Prepare coverages and logs
run: cp tests-coverage.xml build/logs/clover.xml && cp tests-cobertura.xml build/logs/cobertura.xml && cp tests-execution.xml build/logs/junit.xml
run: ./vendor/bin/pest --colors=always --configuration phpunit.xml.dist

- name: Push to Coveralls
env:
Expand Down
9 changes: 9 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,13 @@
<directory suffix=".php">./Tests</directory>
</exclude>
</source>

<coverage>
<report>
<clover outputFile="build/logs/clover.xml" />
<cobertura outputFile="build/logs/cobertura.xml"/>
<html outputDirectory="build/logs/html" />
<xml outputDirectory="build/logs/xml"/>
</report>
</coverage>
</phpunit>

0 comments on commit d2dcdff

Please sign in to comment.