]> git.mxchange.org Git - friendica.git/commitdiff
Improve phpunit testsuites, add script for unit tests
authorArt4 <art4@wlabs.de>
Sun, 10 Nov 2024 00:12:47 +0000 (00:12 +0000)
committerArt4 <art4@wlabs.de>
Sun, 10 Nov 2024 00:12:47 +0000 (00:12 +0000)
composer.json
tests/phpunit.xml

index 0280409716a2164e95cf8e0978f7bf8b748a9390..36905f81d166204e4d1c2aabaccca06378b7f0ff 100644 (file)
        },
        "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",
index 6f16c7a73e74a337d9b2324f8b631721db764e17..0e323813f88ce00d2e3af799ce5cc811fdd665a6 100644 (file)
@@ -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>