Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

80 lines (63 sloc) 2.587 kB
* ThinkUp/tests/all_tests.php
* Copyright (c) 2009-2012 Gina Trapani
* This file is part of ThinkUp (
* ThinkUp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
* later version.
* ThinkUp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
* You should have received a copy of the GNU General Public License along with ThinkUp. If not, see
* <>.
* @author Gina Trapani <ginatrapani[at]gmail[dot]com>
* @license
* @copyright 2009-2012 Gina Trapani
include dirname(__FILE__) . '/init.tests.php';
require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/autorun.php';
require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/web_tester.php';
require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/mock_objects.php';
if (isset($argv[1]) && ($argv[1] == '--usage' || $argv[1] == '-h' || $argv[1] == '-help')) {
echo "ThinkUp test suite runner
Usage: [environment vars...] php tests/all_tests.php [args...]
Environment vars:
TEST_DEBUG=1 Output debugging message during development
SKIP_UPGRADE_TESTS=1 Skip upgrade tests, ie, do a short run
TEST_TIMING=1 Output test run timing information
RD_MODE=1 Use database stored on RAM disk (for speed improvements)
-help, -h Show this help message
$start_time = microtime(true);
require_once THINKUP_ROOT_PATH.'tests/all_model_tests.php';
require_once THINKUP_ROOT_PATH.'tests/all_plugin_tests.php';
require_once THINKUP_ROOT_PATH.'tests/all_integration_tests.php';
require_once THINKUP_ROOT_PATH.'tests/all_install_tests.php';
require_once THINKUP_ROOT_PATH.'tests/all_controller_tests.php';
$end_time = microtime(true);
$total_time = ($end_time - $start_time) / 60;
echo "
Total ThinkUp test passes: ".$TOTAL_PASSES."
Total ThinkUp test failures: ".$TOTAL_FAILURES."
Time elapsed: ".round($total_time)." minute(s)
echo trim(exec("cd ".THINKUP_ROOT_PATH."docs/source/; wc -w `find ./ -type f -name \*.rst` | tail -n 1")) .
" words of application documentation
Jump to Line
Something went wrong with that request. Please try again.