Files
core/tests/phpunit.xml
Harald Eilertsen c051c4d0aa tests: Make addonname/tests base addon tests dir
This makes it easier to treat anything under tests/ as namespaced for
PSR-4 autoloading.
2025-12-21 11:05:37 +01:00

37 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="unit/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
<php>
<includePath>..</includePath>
<!-- env name="HZ_TEST_DB_HOST" value=""/-->
<env name="HZ_TEST_DB_TYPE" value="postgres"/>
<!-- env name="HZ_TEST_DB_PORT" value=""/-->
<env name="HZ_TEST_DB_USER" value="test_user"/>
<env name="HZ_TEST_DB_PASS" value="hubzilla"/>
<env name="HZ_TEST_DB_DATABASE" value="hubzilla_test_db"/>
<env name="HZ_TEST_DB_CHARSET" value="UTF8"/>
</php>
<testsuites>
<testsuite name="Hubzilla core unit tests">
<directory suffix="Test.php">./unit/</directory>
</testsuite>
<testsuite name="Hubzilla addons unit tests">
<directory suffix="Test.php">../extend/addon/*/*/tests/</directory>
</testsuite>
<testsuite name="Hubzilla themes unit tests">
<directory suffix="Test.php">../extend/theme/*/*/tests/</directory>
</testsuite>
<testsuite name="Hubzilla widgets unit tests">
<directory suffix="Test.php">../extend/widget/*/*/tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">../Zotlabs/</directory>
<directory suffix=".php">../include/</directory>
</include>
<exclude>
<directory suffix=".php">../Zotlabs/Update/</directory>
</exclude>
</source>
</phpunit>