add phpunit configuration for coverage report, mark uncovered lines
This commit is contained in:
parent
03cf29ce02
commit
2ffb5a4d73
@ -33,7 +33,9 @@ class d3totplogin extends FrontendController
|
|||||||
) {
|
) {
|
||||||
$this->getUtils()->redirect('index.php?cl=start', true, 302);
|
$this->getUtils()->redirect('index.php?cl=start', true, 302);
|
||||||
if (false == defined('OXID_PHP_UNIT')) {
|
if (false == defined('OXID_PHP_UNIT')) {
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
exit;
|
exit;
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,9 @@ class d3_totp_utils extends d3_totp_utils_parent
|
|||||||
if ($blAuth && $totp->isActive() && false === $totpAuth) {
|
if ($blAuth && $totp->isActive() && false === $totpAuth) {
|
||||||
$this->redirect('index.php?cl=login', true, 302);
|
$this->redirect('index.php?cl=login', true, 302);
|
||||||
if (false == defined('OXID_PHP_UNIT')) {
|
if (false == defined('OXID_PHP_UNIT')) {
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
exit;
|
exit;
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
30
src/tests/phpunit.xml
Normal file
30
src/tests/phpunit.xml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<phpunit backupGlobals="true"
|
||||||
|
backupStaticAttributes="false"
|
||||||
|
cacheTokens="true"
|
||||||
|
colors="false"
|
||||||
|
convertErrorsToExceptions="true"
|
||||||
|
convertNoticesToExceptions="false"
|
||||||
|
convertWarningsToExceptions="true"
|
||||||
|
forceCoversAnnotation="false"
|
||||||
|
mapTestClassNameToCoveredClassName="false"
|
||||||
|
processIsolation="false"
|
||||||
|
stopOnError="false"
|
||||||
|
stopOnFailure="false"
|
||||||
|
stopOnIncomplete="false"
|
||||||
|
stopOnSkipped="false"
|
||||||
|
verbose="false">
|
||||||
|
<filter>
|
||||||
|
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||||
|
<directory suffix=".php">../Application</directory>
|
||||||
|
<directory suffix=".php">../Modules</directory>
|
||||||
|
<directory suffix=".php">../Setup</directory>
|
||||||
|
<exclude>
|
||||||
|
<directory suffix=".php">../Application/views</directory>
|
||||||
|
<directory suffix=".php">../Application/translations</directory>
|
||||||
|
</exclude>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
<logging>
|
||||||
|
<log type="junit" target="reports/logfile.xml"/>
|
||||||
|
</logging>
|
||||||
|
</phpunit>
|
Loading…
Reference in New Issue
Block a user