diff options
author | Mario <mario@mariovavti.com> | 2024-01-06 16:34:39 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-06 16:34:39 +0000 |
commit | a36de8ba1a27204667413760c53f783ba60f22a7 (patch) | |
tree | fa219c32ebe5d8cad86dccc6b26b04ed6c22145b /tests/phpunit.xml | |
parent | c73518d8ec562aed63223c668a43d9cda152cb9d (diff) | |
parent | e3d30763dabdf12f961ed3d1d7cf4eaee44c65a9 (diff) | |
download | volse-hubzilla-a36de8ba1a27204667413760c53f783ba60f22a7.tar.gz volse-hubzilla-a36de8ba1a27204667413760c53f783ba60f22a7.tar.bz2 volse-hubzilla-a36de8ba1a27204667413760c53f783ba60f22a7.zip |
Merge branch 'tests/fix-db-and-ci-integration' into 'dev'
tests: Integrate the DB in "unit" tests.
See merge request hubzilla/core!2081
Diffstat (limited to 'tests/phpunit.xml')
-rw-r--r-- | tests/phpunit.xml | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 6b1b33534..fe197b84a 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -1,21 +1,20 @@ <?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"> - <coverage processUncoveredFiles="false" includeUncoveredFiles="false"> - <include> - <directory suffix=".php">../Zotlabs/</directory> - <directory suffix=".php">../include/</directory> - </include> - </coverage> +<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> - <var name="db_dsn" value="mysql:dbname=gitlab_ci_hubzilla;host=mysql"/> - <var name="db_username" value="root"/> - <var name="db_password" value="mysql"/> - <env name="hz_db_server" value="mysql"/> - <env name="hz_db_scheme" value="mysql"/> - <env name="hz_db_port" value=""/> - <env name="hz_db_user" value="root"/> - <env name="hz_db_pass" value="mysql"/> - <env name="hz_db_database" value="hello_world_test"/> + <includePath>..</includePath> + <env name="HZ_TEST_DB_HOST" value="db"/> + <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 default Test Suite"> @@ -24,14 +23,14 @@ <testsuite name="API Test Suite"> <directory suffix="Test.php" prefix="API">./unit/</directory> </testsuite> - <testsuite name="Ex-/Import Test Suite"> - <!--<directory suffix="Test.php">./Unit/eximport/</directory>--> - </testsuite> </testsuites> - <groups> - <exclude> - <group>postgresql</group> - </exclude> - </groups> - <!--cover reporting--> + <coverage + processUncoveredFiles="false" + cacheDirectory=".cache/phpunit" + > + <include> + <directory suffix=".php">../Zotlabs/</directory> + <directory suffix=".php">../include/</directory> + </include> + </coverage> </phpunit> |