mirror of
https://github.com/predis/predis.git
synced 2026-08-19 21:02:46 +00:00
df14e11c3a
* Added support for tests running against redis cluster * Test coverage * Added comment about master nodes * Codestyle fix * Revert changes * Revert DBNUM * Added cluster endpoints to relay tests env configuration * Exclude cluster tests from relay tests environment * Removed TODO comment * Changed cluster image version to unstable * Updated configuration to match unstable cluster * Fixed path * Updated cluster CI configuration * Removed redundant flag * Removed backslash * Updated file path * Updated file path variable * Added docker cluster initialization as additional step * Run cluster tests as separate workflow * Codestyle fixes * Updated exported files * Added additional timeout so cluster image could be settled * Added support for different cluster image, use docker compose for cluster tests CI * Remove unused flag * Removed variable from volume path * Added sleep timeout to allow docker setup after running * Added timeout before tests run * Updated linter settings * Include indent changes for.sh files * Added missing coverage * Revert expected files and mark docker folder as exclusion * Specify folder itself as excluded * Moved cluster tests as separate job in tests.yml * Updated name to contain cluster word --------- Co-authored-by: Chayim <chayim@users.noreply.github.com>
61 lines
1.7 KiB
XML
61 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit
|
|
bootstrap="tests/bootstrap.php"
|
|
colors="true"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
processIsolation="false"
|
|
stopOnError="false"
|
|
stopOnFailure="false"
|
|
beStrictAboutTestsThatDoNotTestAnything="true"
|
|
>
|
|
|
|
<testsuites>
|
|
<testsuite name="Predis Test Suite">
|
|
<directory>tests/Predis/</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
|
|
<coverage processUncoveredFiles="true">
|
|
<include>
|
|
<directory suffix=".php">./src</directory>
|
|
</include>
|
|
<report>
|
|
<clover outputFile="build/logs/clover.xml"/>
|
|
</report>
|
|
</coverage>
|
|
|
|
<groups>
|
|
<exclude>
|
|
<group>realm-webdis</group>
|
|
<group>realm-stack</group>
|
|
<group>ext-relay</group>
|
|
<group>ext-curl</group>
|
|
<group>ext-phpiredis</group>
|
|
<group>cluster</group>
|
|
<!-- <group>connected</group> -->
|
|
<!-- <group>disconnected</group> -->
|
|
<!-- <group>commands</group> -->
|
|
<!-- <group>slow</group> -->
|
|
</exclude>
|
|
</groups>
|
|
|
|
<filter>
|
|
<whitelist>
|
|
<directory suffix=".php">src/</directory>
|
|
</whitelist>
|
|
</filter>
|
|
|
|
<php>
|
|
<const name="REDIS_SERVER_HOST" value="127.0.0.1" />
|
|
<const name="REDIS_SERVER_PORT" value="6379" />
|
|
<const name="REDIS_SERVER_DBNUM" value="0" />
|
|
<env name="USE_RELAY" value="false" />
|
|
|
|
<!-- Redis Cluster -->
|
|
<!-- Only master nodes endpoints included -->
|
|
<const name="REDIS_CLUSTER_ENDPOINTS" value="127.0.0.1:6372,127.0.0.1:6373,127.0.0.1:6374" />
|
|
</php>
|
|
</phpunit>
|