about summary refs log tree commit diff stats
path: root/phpunit.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-27 13:35:04 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-27 13:35:04 +0300
commitec2de7ecd2f0288e4d965148b9c6a8c1983333e9 (patch)
tree8dbef820ca9872c616d9486e36d2c07150e1c7c5 /phpunit.xml
parent8659f5950c3d794b78ece1fd7677dd3992b6d5b5 (diff)
downloadthe-epube-ec2de7ecd2f0288e4d965148b9c6a8c1983333e9.tar.gz
the-epube-ec2de7ecd2f0288e4d965148b9c6a8c1983333e9.tar.xz
add coverage support
Diffstat (limited to 'phpunit.xml')
-rw-r--r--phpunit.xml17
1 files changed, 14 insertions, 3 deletions
diff --git a/phpunit.xml b/phpunit.xml
index 3268af8..c5541c3 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,10 +1,21 @@
 <phpunit
+	stderr="true"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/latest/phpunit.xsd"
 	bootstrap="tests/bootstrap.php"
 	verbose="true">
-  <testsuite name="tt-rss">
-    <directory>tests</directory>
-</testsuite>
+	<testsuite name="tt-rss">
+		<directory>tests</directory>
+	</testsuite>
+	<coverage>
+		<include>
+			<directory suffix=".php">classes</directory>
+			<directory suffix=".php">lib</directory>
+		</include>
+		<exclude>
+			<directory suffix=".php">classes/Plugin_*</directory>
+			<directory suffix=".php">lib/gettext</directory>
+		</exclude>
+	</coverage>
 
 </phpunit>