diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2023-12-28 17:50:51 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2023-12-28 17:50:51 +0100 |
commit | 3f09af98cf425d955af58817949b566aefbd4526 (patch) | |
tree | 6b6184e1c02ad6d4fd8366f09b9f2061d8544cb0 /tests | |
parent | fb4adf6a29a3a536a4b5dfef989e3ae7c7304f4f (diff) | |
download | volse-hubzilla-3f09af98cf425d955af58817949b566aefbd4526.tar.gz volse-hubzilla-3f09af98cf425d955af58817949b566aefbd4526.tar.bz2 volse-hubzilla-3f09af98cf425d955af58817949b566aefbd4526.zip |
ci: Enable db testing in CI.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/phpunit-ci-mysql.xml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/phpunit-ci-mysql.xml b/tests/phpunit-ci-mysql.xml new file mode 100644 index 000000000..15f924117 --- /dev/null +++ b/tests/phpunit-ci-mysql.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<phpunit + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + bootstrap="../boot.php" + colors="true" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" + > + + <php> + <includePath>..</includePath> + <env name="HZ_TEST_DB_HOST" value="mysql"/> + <env name="HZ_TEST_DB_TYPE" value="mysql"/> + <env name="HZ_TEST_DB_PORT" value=""/> + <env name="HZ_TEST_DB_USER" value="root"/> + <env name="HZ_TEST_DB_PASS" value="mysql"/> + <env name="HZ_TEST_DB_DATABAse" value="hello_world_test"/> + </php> + <testsuites> + <testsuite name="Hubzilla default Test Suite"> + <directory suffix="Test.php">./unit/</directory> + </testsuite> + <testsuite name="API Test Suite"> + <directory suffix="Test.php" prefix="API">./unit/</directory> + </testsuite> + </testsuites> + <coverage processUncoveredFiles="true"> + <include> + <directory suffix=".php">../Zotlabs/</directory> + <directory suffix=".php">../include/</directory> + </include> + <report> + <html outputDirectory="./results/coverage-report/" lowUpperBound="35" highLowerBound="70"/> + </report> + </coverage> + <groups> + <exclude> + <group>postgresql</group> + </exclude> + </groups> +</phpunit> |