phpunit.xml.dist 1.76 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?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">

	<testsuites>
		<testsuite name="Tiki test suite">
			<directory>./lib/test</directory>
22 23 24
			<!-- Exclude files where all tests are marked as skipped -->
			<exclude>./lib/test/AcceptanceTests/</exclude>
			<exclude>./lib/test/core/Reports/ReportsEndToEndTest.php</exclude>
25 26 27 28 29 30
		</testsuite>
	</testsuites>

	<groups>
		<exclude>
			<group>disable</group>
31 32 33 34
			<group>marked-as-skipped</group>
			<group>marked-as-incomplete</group>
			<!-- require pref lang_google_api_key -->
			<group>GoogleTranslate</group>
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
		</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>
			</exclude>
		</whitelist>
	</filter>

	<!--
		uncomment the logging node below if you need xml coverage info, for IDEs that support phpunit
		Info from http://www.phpunit.de/manual/3.3/en/phpunit-book.html#appendixes.configuration
	<logging>
		<log type="coverage-clover" target="lib/test/clover.xml" />
	</logging>
	-->

</phpunit>