Skip to content

Commit

Permalink
Update PHPUnit config, tweaks to test config
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Jul 18, 2022
1 parent 4398be4 commit 4b70f14
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
- name: Install Winter CMS
run: |
wget https://github.com/wintercms/winter/archive/${{ matrix.winterRelease }}.zip
unzip ${{ matrix.winterReleaseDir }}.zip
rm ${{ matrix.winterReleaseDir }}.zip
unzip ${{ matrix.winterRelease }}.zip
rm ${{ matrix.winterRelease }}.zip
shopt -s dotglob
mv winter-${{ matrix.winterReleaseDir }}/* ./
rmdir winter-${{ matrix.winterReleaseDir }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
composer.lock
vendor
.DS_Store
.phpunit.result.cache
26 changes: 14 additions & 12 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
<phpunit
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
Expand All @@ -8,26 +9,27 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<testsuites>
<testsuite name="winter.user">
<testsuite name="Winter.User">
<directory>./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./classes</directory>
<directory suffix=".php">./components</directory>
<directory suffix=".php">./controllers</directory>
<directory suffix=".php">./facades</directory>
<directory suffix=".php">./models</directory>
<directory suffix=".php">./notifyrules</directory>
<exclude>
<file>./Plugin.php</file>
<directory>./tests</directory>
<directory>./updates</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</include>
<exclude>
<file>./Plugin.php</file>
<directory>./tests</directory>
<directory>./updates</directory>
<directory>./vendor</directory>
</exclude>
</coverage>
</phpunit>

0 comments on commit 4b70f14

Please sign in to comment.