Skip to content
Snippets Groups Projects
Commit 02362c7d authored by David Maus's avatar David Maus Committed by David Maus
Browse files

Relocated PHPUnit configuration of core unit tests

parent 7eccb7ed
Branches
Tags
No related merge requests found
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<!-- PHPUnit --> <!-- PHPUnit -->
<target name="phpunit" description="Run unit tests"> <target name="phpunit" description="Run unit tests">
<exec dir="${srcdir}/tests" command="VUFIND_LOCAL_DIR=${srcdir}/local phpunit -dzend.enable_gc=0 --log-junit ${builddir}/reports/phpunit.xml --coverage-clover ${builddir}/reports/coverage/clover.xml --coverage-html ${builddir}/reports/coverage/" passthru="true" checkreturn="true" /> <exec dir="${srcdir}/module/VuFind/tests/unit-tests" command="VUFIND_LOCAL_DIR=${srcdir}/local phpunit -dzend.enable_gc=0 --log-junit ${builddir}/reports/phpunit.xml --coverage-clover ${builddir}/reports/coverage/clover.xml --coverage-html ${builddir}/reports/coverage/" passthru="true" checkreturn="true" />
</target> </target>
<!-- Install and Activate VuFind --> <!-- Install and Activate VuFind -->
......
...@@ -7,8 +7,7 @@ use Zend\Mvc\Service\ServiceManagerConfig; ...@@ -7,8 +7,7 @@ use Zend\Mvc\Service\ServiceManagerConfig;
define('VUFIND_PHPUNIT_RUNNING', 1); define('VUFIND_PHPUNIT_RUNNING', 1);
// Define path to application directory // Define path to application directory
defined('APPLICATION_PATH') defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__DIR__) . '/../../..'));
|| define('APPLICATION_PATH', dirname(__DIR__));
// Define application environment // Define application environment
defined('APPLICATION_ENV') defined('APPLICATION_ENV')
......
<phpunit bootstrap="./bootstrap.php" backupGlobals="false"> <phpunit bootstrap="./bootstrap.php" backupGlobals="false">
<testsuites> <testsuites>
<testsuite name="VuFind"> <testsuite name="VuFind">
<directory>../module/VuFind/tests</directory> <directory>src</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter> <filter>
<whitelist addUncoveredFilesFromWhitelist="true"> <whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../module/VuFind/src</directory> <directory suffix=".php">../../src</directory>
</whitelist> </whitelist>
</filter> </filter>
</phpunit> </phpunit>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment