Files
sysPass/tests/phpunit.xml
Rubén D ebe58282f6 * [ADD] Test API module without using a real sysPass instance.
* [MOD] Improve module loading.
* [MOD] Improve backup file regex.
* [MOD] Minor code tweaks.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-17 16:26:39 +02:00

44 lines
1.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="./SP/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">../lib/SP</directory>
</include>
<exclude>
<directory suffix=".php">../lib/SP/DataModel</directory>
<directory suffix=".php">../lib/SP/Providers</directory>
<directory suffix=".php">../lib/SP/Html/Assets</directory>
<directory suffix=".php">../lib/SP/Html/DataGrid</directory>
<file>../lib/SP/Config/ConfigData.php</file>
</exclude>
<report>
<clover outputFile="./_output/coverage-clover.xml"/>
<text outputFile="php://stdout" showUncoveredFiles="true"
showOnlySummary="true"/>
</report>
</coverage>
<testsuites>
<testsuite name="core">
<directory suffix=".php">./SP</directory>
<exclude>./SP/Modules</exclude>
</testsuite>
<testsuite name="api">
<directory suffix=".php">./SP/Modules/Api</directory>
</testsuite>
<testsuite name="cli">
<directory suffix=".php">./SP/Modules/Cli</directory>
</testsuite>
</testsuites>
<logging/>
</phpunit>