Skip to content

Commit

Permalink
Fixed PhpUnit Conflicts (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis authored Feb 15, 2023
1 parent 370a42a commit a9a992b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},

"require-dev" : {
"jbzoo/phpunit" : ">=5.0.0",
"jbzoo/phpunit" : "6.x-dev",
"jbzoo/utils" : ">=4.5.5"
},

Expand Down
29 changes: 16 additions & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
@copyright Copyright (C) JBZoo.com, All rights reserved.
@link https://github.com/JBZoo/Codestyle
-->
<phpunit bootstrap="tests/autoload.php"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="tests/autoload.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
Expand All @@ -23,25 +24,27 @@
stopOnIncomplete="false"
stopOnSkipped="false"
stopOnRisky="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
<report>
<clover outputFile="build/coverage_xml/main.xml"/>
<html outputDirectory="build/coverage_html" lowUpperBound="75" highLowerBound="95"/>
<php outputFile="build/coverage_cov/main.cov"/>
<text outputFile="php://stdout" showUncoveredFiles="false" showOnlySummary="true"/>
</report>
</coverage>

<testsuites>
<testsuite name="PHPUnit">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">src</directory>
</whitelist>
</filter>

<logging>
<log type="coverage-html" target="build/coverage_html" lowUpperBound="75" highLowerBound="95"/>
<log type="coverage-clover" target="build/coverage_xml/main.xml"/>
<log type="coverage-php" target="build/coverage_cov/main.cov"/>
<log type="junit" target="build/coverage_junit/main.xml"/>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false" showOnlySummary="true"/>
<junit outputFile="build/coverage_junit/main.xml"/>
</logging>

</phpunit>
4 changes: 3 additions & 1 deletion src/Makefiles/tests.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ test-phpunit-teamcity:
@echo "##teamcity[progressStart 'PHPUnit Tests']"
@XDEBUG_MODE=coverage $(PHP_BIN) `pwd`/vendor/bin/phpunit \
--configuration="$(JBZOO_CONFIG_PHPUNIT)" \
--cache-result-file="$(PATH_BUILD)/phpunit.result.cache" \
--order-by=random \
--colors=always \
--teamcity \
Expand All @@ -47,6 +48,7 @@ test-phpunit-teamcity:
test-phpunit-local:
@XDEBUG_MODE=coverage $(PHP_BIN) `pwd`/vendor/bin/phpunit \
--configuration="$(JBZOO_CONFIG_PHPUNIT)" \
--cache-result-file="$(PATH_BUILD)/phpunit.result.cache" \
--order-by=random \
--colors=always \
--verbose
Expand All @@ -55,7 +57,7 @@ test-phpunit-local:
test-phpunit-ga:
@-XDEBUG_MODE=coverage $(PHP_BIN) `pwd`/vendor/bin/phpunit \
--configuration="$(JBZOO_CONFIG_PHPUNIT)" \
--printer=Codedungeon\\PHPUnitPrettyResultPrinter\\Printer \
--cache-result-file="$(PATH_BUILD)/phpunit.result.cache" \
--order-by=random \
--colors=always \
--verbose || true
Expand Down

0 comments on commit a9a992b

Please sign in to comment.