Skip to content

Commit

Permalink
scripts updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
syslogic committed Jul 11, 2023
1 parent c4403df commit 6ea265e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 42 deletions.
8 changes: 8 additions & 0 deletions .idea/runConfigurations/coverage_linux.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@
}],
"scripts": {
"docs": "phpDocumentor.phar",
"test": "vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml --testsuite main",
"coverage_linux": "export XDEBUG_MODE=coverage && vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration coverage.xml --testsuite main",
"coverage_windows": "setlocal xdebug.mode=coverage && %cd%/vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration coverage.xml --testsuite main"
"coverage_linux": "export XDEBUG_MODE=coverage && vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml --testsuite main",
"coverage_windows": "setlocal xdebug.mode=coverage && %cd%/vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml --testsuite main",
"test": "vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml --testsuite main"
},
"scripts-descriptions": {
"docs": "Generate docs",
"test": "Run PHPUnit tests",
"docs": "Generate code documentation with phpDocumentor",
"coverage_linux": "Run PHPUnit tests with code coverage on Linux",
"coverage_windows": "Run PHPUnit tests with code coverage on Windows"
"coverage_windows": "Run PHPUnit tests with code coverage on Windows",
"test": "Run PHPUnit tests"
},
"require": {
"php": ">=8.0",
"ext-json": "*",
"ext-curl": "*",
"phpseclib/phpseclib": "^3.0.20",
"phpseclib/phpseclib": "^3.0.21",
"guzzlehttp/guzzle": "^7.7.0",
"guzzlehttp/psr7": "^2.5.0",
"psr/http-message": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6.9",
"phpunit/phpunit": "^9.6.10",
"phpunit/php-code-coverage": "^9.2.26",
"jetbrains/phpstorm-attributes": "^1.0",
"monolog/monolog": "^1.27.1"
Expand Down
33 changes: 0 additions & 33 deletions coverage.xml

This file was deleted.

14 changes: 13 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
</testsuite>
</testsuites>

<logging/>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="./build/coverage" lowUpperBound="35" highLowerBound="70"/>
<text outputFile="php://stdout" showUncoveredFiles="true"/>
</report>
</coverage>

<logging>
<testdoxHtml outputFile="build/testdox.html"/>
</logging>

</phpunit>

0 comments on commit 6ea265e

Please sign in to comment.