Skip to content

Commit

Permalink
Tests: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jun 11, 2023
1 parent 28a7b26 commit 781ed74
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 39 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ phpstan:

.PHONY: tests
tests:
vendor/bin/phpunit -c phpunit.xml --stderr --testsuite Contributte.Unit
vendor/bin/phpunit -c phpunit.xml --stderr --testsuite Contributte.E2E
vendor/bin/phpunit -c phpunit.xml --stderr --testsuite App.Unit
vendor/bin/phpunit -c phpunit.xml --stderr --testsuite App.E2E

.PHONY: coverage
coverage:
Expand Down
73 changes: 36 additions & 37 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
cacheResult="true"
cacheResultFile="var/tmp/.phpunit.result.cache"
bootstrap="tests/bootstrap.php">
<php>
<ini name="memory_limit" value="2048M"/>
</php>
<testsuites>
<testsuite name="Contributte.E2E">
<directory>./tests/Cases/E2E</directory>
</testsuite>
<testsuite name="Contributte.Unit">
<directory>./tests/Cases/Unit</directory>
</testsuite>
</testsuites>
<extensions>
<extension class="Tests\Toolkit\Phpunit\CleanerExtension"/>
<extension class="Tests\Toolkit\Phpunit\BypassFinalExtension"/>
</extensions>
<listeners>
<listener class="Tests\Toolkit\Phpunit\SpeedTrapListener"/>
</listeners>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
colors="true"
failOnRisky="true"
failOnWarning="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
cacheResult="true"
cacheResultFile="var/tmp/.phpunit.result.cache"
bootstrap="tests/bootstrap.php"
>
<php>
<ini name="memory_limit" value="2048M"/>
</php>
<testsuites>
<testsuite name="App.Build">
<directory>./tests/Cases/Build</directory>
</testsuite>
<testsuite name="App.E2E">
<directory>./tests/Cases/E2E</directory>
</testsuite>
<testsuite name="App.Unit">
<directory>./tests/Cases/Unit</directory>
</testsuite>
</testsuites>
<extensions>
<bootstrap class="Contributte\Phpunit\Extension\CleanerExtension">
<parameter name="dirs" value="tests/tmp"/>
</bootstrap>
<bootstrap class="Contributte\Phpunit\Extension\BypassFinalExtension"/>
</extensions>
</phpunit>

0 comments on commit 781ed74

Please sign in to comment.