<?xml version="1.0" encoding="UTF-8"?>
<phpunit
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
	bootstrap="tests/bootstrap.php"
	colors="true"
	verbose="true"
	beStrictAboutOutputDuringTests="true"
	cacheResultFile=".phpunit.result.cache"
>
	<testsuites>
		<testsuite name="Snap Finance Checkout">
			<directory suffix="Test.php">tests</directory>
		</testsuite>
	</testsuites>

	<!--
		Unit-test coverage target: plugin includes/ (WordPress mocked via Brain Monkey).
		Minimum line coverage: 80% (enforced by tests/assert-min-coverage.php via composer test:coverage).
		class-snap-blocks.php is excluded — it extends WooCommerce Blocks AbstractPaymentMethodType.
	-->
	<coverage
		cacheDirectory=".phpunit.cache/code-coverage"
		includeUncoveredFiles="true"
		processUncoveredFiles="true"
	>
		<include>
			<directory suffix=".php">includes</directory>
		</include>
		<exclude>
			<file>includes/class-snap-blocks.php</file>
		</exclude>
		<report>
			<clover outputFile="tests/coverage/clover.xml"/>
			<text outputFile="php://stdout" showUncoveredFiles="false" showOnlySummary="true"/>
		</report>
	</coverage>
</phpunit>
