Просмотр исходного кода

Added additional PHPUnit config file to root folder.

Taddeus Kroes 14 лет назад
Родитель
Сommit
8eb3be4c13
2 измененных файлов с 29 добавлено и 1 удалено
  1. 28 0
      phpunit.xml
  2. 1 1
      test/phpunit.xml

+ 28 - 0
phpunit.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit colors="false"
+         convertErrorsToExceptions="true"
+         convertNoticesToExceptions="true"
+         convertWarningsToExceptions="true"
+         stopOnError="true">
+	<filter>
+		<whitelist>
+			<directory>.</directory>
+			<exclude>
+				<directory>test</directory>
+				<directory>test-old</directory>
+			</exclude>
+		</whitelist>
+	</filter>
+	<testsuites>
+		<testsuite name="pQuery test suite">
+			<directory suffix=".php">test</directory>
+			<exclude>
+				<directory suffix=".php">test/coverage</directory>
+				<file>test/config.php</file>
+			</exclude>
+		</testsuite>
+	</testsuites>
+	<logging>
+		<log type="coverage-html" target="test/coverage" charset="UTF-8" highlight="true" />
+	</logging>
+</phpunit>

+ 1 - 1
test/phpunit.xml

@@ -8,7 +8,7 @@
 		<whitelist>
 			<directory>..</directory>
 			<exclude>
-				<directory>../test</directory>
+				<directory>.</directory>
 				<directory>../test-old</directory>
 			</exclude>
 		</whitelist>