Files
camelia-orm/phpunit.integration.xml.dist
T
dgarcia f9010e2c63
Tests / PHP 8.3 (push) Failing after 3m42s
Tests / PHP 8.4 (push) Failing after 2m31s
test: split unit and integration suites and add coverage config
- Create tests/Integration/ConnectionTest.php, skipped unless CAMELIA_TEST_HOST,
  CAMELIA_TEST_DATABASE and CAMELIA_TEST_USER are set, so composer test:integration
  no longer fails on a missing directory.
- Move coverage reports to phpunit.coverage.xml.dist: a coverage driver is optional and
  failOnWarning would turn its absence into a failed gate.
- Add a composer coverage script and document the requirement.
- Exclude development-only files from the distribution archive via export-ignore.
- Add a Gitea Actions workflow running composer check on PHP 8.3 and 8.4.
- Align the README title with the package name and add Packagist and CI badges.
2026-11-15 10:21:11 -03:00

23 lines
953 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.cache.integration"
failOnWarning="true"
failOnRisky="true">
<testsuites>
<testsuite name="integration">
<directory>tests/Integration</directory>
</testsuite>
</testsuites>
<php>
<!-- Provide these to run the integration suite; without them each test is skipped. -->
<env name="CAMELIA_TEST_HOST" value="" force="false"/>
<env name="CAMELIA_TEST_DATABASE" value="" force="false"/>
<env name="CAMELIA_TEST_USER" value="" force="false"/>
<env name="CAMELIA_TEST_PASSWORD" value="" force="false"/>
<env name="CAMELIA_TEST_PORT" value="" force="false"/>
</php>
</phpunit>