You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
2.6 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!--
Note: When backupGlobals is set to true, phpunit ends up trying to restore
the DB connection to its initial state, i.e. an unconnected state.
This causes some mysqli errors, because Tiki libraries never expect
to have to reconnect to the DB.
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor_bundled/vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="lib/test/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="false"
backupGlobals="false"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
cacheResultFile="temp/cache">
<testsuites>
<testsuite name="Tiki test suite">
<directory>./lib/test</directory>
<!-- Exclude files where all tests are marked as skipped -->
<exclude>./lib/test/AcceptanceTests/</exclude>
<exclude>./lib/test/core/Reports/ReportsEndToEndTest.php</exclude>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>disable</group>
<group>marked-as-skipped</group>
<group>marked-as-incomplete</group>
<!-- require pref lang_google_api_key -->
<group>GoogleTranslate</group>
<group>RequiresWebserver</group>
</exclude>
</groups>
<php>
<ini name="memory_limit" value="-1"/>
<ini name="date.timezone" value="UTC"/>
</php>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./lib</directory>
<exclude>
<directory suffix=".php">lib/test</directory>
<directory suffix="index.php">./</directory>
</exclude>
</whitelist>
</filter>
<logging>
<log type="junit" target="temp/phpunit.junit.xml"/>
<!--
Coverage analysis more than double the time to run tests.
Instead of enabling this, on the build server, use:
1. Setup phpStorm integration http://dev.tiki.org/PhpStorm?latest=1#Set_up_PHPUnit_in_Run_Debug_Config
2. Run from the command line with with the option: coverage-clover temp/clover.xml
Note that you will need php-xdebug installed to run it.
<log type="coverage-clover" target="temp/clover.xml" />
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false" showOnlySummary="true" />
-->
</logging>
</phpunit>