mirror of
https://github.com/friendica/friendica
synced 2024-11-15 01:02:54 +00:00
Improve phpunit testsuites, add script for unit tests
This commit is contained in:
parent
bbf7e4a936
commit
5305286312
2 changed files with 11 additions and 4 deletions
|
@ -156,6 +156,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"test": "phpunit",
|
||||
"test:unit": "phpunit -c tests/phpunit.xml --testsuite unit",
|
||||
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './view/asset/*' -print0 | xargs -0 -n1 php -l",
|
||||
"docker:translate": "docker run --rm -v $PWD:/data -w /data friendicaci/transifex bin/run_xgettext.sh",
|
||||
"cs:install": "@composer install --working-dir=bin/dev/php-cs-fixer",
|
||||
|
|
|
@ -7,10 +7,16 @@
|
|||
timeoutForMediumTests="900"
|
||||
timeoutForLargeTests="900"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
|
||||
<testsuite name="friendica">
|
||||
<directory suffix=".php">functional/</directory>
|
||||
<directory suffix=".php">src/</directory>
|
||||
</testsuite>
|
||||
<testsuites>
|
||||
<testsuite name="friendica">
|
||||
<directory suffix=".php">functional/</directory>
|
||||
<directory suffix=".php">src/</directory>
|
||||
<directory suffix=".php">Unit/</directory>
|
||||
</testsuite>
|
||||
<testsuite name="unit">
|
||||
<directory suffix=".php">Unit/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<!-- Filters for Code Coverage -->
|
||||
<coverage>
|
||||
<include>
|
||||
|
|
Loading…
Reference in a new issue