Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
faustoq committed Jul 8, 2024
1 parent 4fe4416 commit 57b8383
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,4 @@ jobs:
composer install --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
env:
XDEBUG_MODE: coverage
run: ./vendor/bin/phpunit tests --coverage-xml coverage/xml

- name: Generate Coverage Badge
uses: timkrase/phpunit-coverage-badge@v1.2.1
with:
coverage_badge_path: ".github/badge-coverage.svg"
push_badge: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
run: ./vendor/bin/phpunit tests
26 changes: 6 additions & 20 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResultFile=".phpunit.cache/test-results"
executionOrder="depends,defects"
forceCoversAnnotation="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
convertDeprecationsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
verbose="true">
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<coverage cacheDirectory=".phpunit.cache/code-coverage"
processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
</phpunit>

0 comments on commit 57b8383

Please sign in to comment.