This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/tests/all_tests.php
2014-02-18 17:22:45 -05:00

28 lines
799 B
PHP

<?php
/**
* SimpleTest integration with Travis CI for Shimmie
*
* @package Shimmie
* @author jgen <jeffgenovy@gmail.com>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* @copyright Copyright (c) 2014, jgen
*/
require_once('lib/simpletest/autorun.php');
require_once('lib/simpletest/unit_tester.php');
require_once('lib/simpletest/web_tester.php');
require_once('lib/simpletest/reporter.php');
require_once('test_install.php');
$options = getopt("d:");
$db = $options["d"];
if (empty($db)){ die("Error: need to specifiy a database for the test environment."); }
define("_TRAVIS_DATABASE", $db);
$test_suite = new TestSuite('Shimmie tests');
$test_suite->add(new ShimmieInstallerTest());
$tr = new TextReporter();
$test_suite->run( $tr );