From b8d754c39b92ea859e0463d9303950d392a40099 Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Sat, 11 Oct 2014 11:39:58 +1300 Subject: [PATCH] Show backtraces when test fail --- index.php | 2 +- tests/PHPUnit/bootstrap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 2ddaffc746..baee05066c 100644 --- a/index.php +++ b/index.php @@ -40,7 +40,7 @@ require_once file_exists(PIWIK_INCLUDE_PATH . '/vendor/autoload.php') : PIWIK_INCLUDE_PATH . '/../../autoload.php'; // Piwik is installed as a dependency if(!defined('PIWIK_PRINT_ERROR_BACKTRACE')) { - define('PIWIK_PRINT_ERROR_BACKTRACE', true); + define('PIWIK_PRINT_ERROR_BACKTRACE', false); } require_once PIWIK_INCLUDE_PATH . '/core/dispatch.php'; \ No newline at end of file diff --git a/tests/PHPUnit/bootstrap.php b/tests/PHPUnit/bootstrap.php index 8335346c6b..01161dfcb7 100644 --- a/tests/PHPUnit/bootstrap.php +++ b/tests/PHPUnit/bootstrap.php @@ -1,6 +1,6 @@ <?php define('PIWIK_TEST_MODE', true); -define('PIWIK_PRINT_ERROR_BACKTRACE', false); +define('PIWIK_PRINT_ERROR_BACKTRACE', true); if (!defined("PIWIK_PATH_TEST_TO_ROOT")) { define('PIWIK_PATH_TEST_TO_ROOT', realpath(dirname(__FILE__) . '/../..')); -- GitLab