From 53052863128b464c4ef1f7aefd1c88f39e275eda Mon Sep 17 00:00:00 2001 From: Art4 Date: Sun, 10 Nov 2024 00:12:47 +0000 Subject: [PATCH] Improve phpunit testsuites, add script for unit tests --- composer.json | 1 + tests/phpunit.xml | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 0280409716..36905f81d1 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 6f16c7a73e..0e323813f8 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -7,10 +7,16 @@ timeoutForMediumTests="900" timeoutForLargeTests="900" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> - - functional/ - src/ - + + + functional/ + src/ + Unit/ + + + Unit/ + +