Skip to content
Snippets Groups Projects
Commit a29aa2c5 authored by Demian Katz's avatar Demian Katz
Browse files

Rearranged test suite -- moved ResultFeedTest to integration tests since this...

Rearranged test suite -- moved ResultFeedTest to integration tests since this relies on live Solr instance.
parent cacc12a4
No related merge requests found
...@@ -60,13 +60,13 @@ ...@@ -60,13 +60,13 @@
</target> </target>
<!-- PHPUnit --> <!-- PHPUnit -->
<target name="phpunit" description="Run unit tests"> <target name="phpunit" description="Run tests">
<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" /> <exec dir="${srcdir}/module/VuFind/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>
<!-- PHPUnit without logging output --> <!-- PHPUnit without logging output -->
<target name="phpunitfast" description="Run unit tests"> <target name="phpunitfast" description="Run tests">
<exec dir="${srcdir}/module/VuFind/tests/unit-tests" command="VUFIND_LOCAL_DIR=${srcdir}/local phpunit -dzend.enable_gc=0" passthru="true" checkreturn="true" /> <exec dir="${srcdir}/module/VuFind/tests" command="VUFIND_LOCAL_DIR=${srcdir}/local phpunit -dzend.enable_gc=0" passthru="true" checkreturn="true" />
</target> </target>
<!-- Install and Activate VuFind --> <!-- Install and Activate VuFind -->
......
...@@ -10,7 +10,7 @@ define('VUFIND_PHPUNIT_RUNNING', 1); ...@@ -10,7 +10,7 @@ define('VUFIND_PHPUNIT_RUNNING', 1);
define('VUFIND_PHPUNIT_MODULE_PATH', __DIR__); define('VUFIND_PHPUNIT_MODULE_PATH', __DIR__);
// Define path to application directory // Define path to application directory
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__DIR__) . '/../../..')); defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__DIR__) . '/../..'));
// Define application environment // Define application environment
defined('APPLICATION_ENV') defined('APPLICATION_ENV')
...@@ -51,7 +51,7 @@ $serviceManager->get('ModuleManager')->loadModules(); ...@@ -51,7 +51,7 @@ $serviceManager->get('ModuleManager')->loadModules();
$loader = Zend\Loader\AutoloaderFactory::getRegisteredAutoloader( $loader = Zend\Loader\AutoloaderFactory::getRegisteredAutoloader(
Zend\Loader\AutoloaderFactory::STANDARD_AUTOLOADER Zend\Loader\AutoloaderFactory::STANDARD_AUTOLOADER
); );
$loader->registerNamespace('VuFindTest', __DIR__ . '/../../src/VuFindTest'); $loader->registerNamespace('VuFindTest', __DIR__ . '/../src/VuFindTest');
// Use output buffering -- some tests involve HTTP headers and will fail if there is output. // Use output buffering -- some tests involve HTTP headers and will fail if there is output.
ob_start(); ob_start();
\ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link http://vufind.org/wiki/unit_tests Wiki * @link http://vufind.org/wiki/unit_tests Wiki
*/ */
namespace VuFind\Test\Theme\Root\Helper; namespace VuFind\IntegrationTest\Theme\Root\Helper;
use VuFind\Theme\Root\Helper\ResultFeed; use VuFind\Theme\Root\Helper\ResultFeed;
/** /**
......
<phpunit bootstrap="./bootstrap.php" backupGlobals="false"> <phpunit bootstrap="./bootstrap.php" backupGlobals="false">
<testsuites> <testsuites>
<testsuite name="VuFind"> <testsuite name="VuFindUnit">
<directory>src</directory> <directory>unit-tests/src</directory>
</testsuite>
<testsuite name="VuFindIntegration">
<directory>integration-tests/src</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter> <filter>
<whitelist addUncoveredFilesFromWhitelist="true"> <whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../../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