mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
tests: Enable debug logging during tests
The debug log will be stored in the test/results directory, and archived as part of the artifacts of the CI run. This should make it easier to get some debugging info out from the CI runs if they fail.
This commit is contained in:
@@ -72,6 +72,8 @@ class UnitTestCase extends TestCase {
|
||||
}
|
||||
|
||||
protected function setUp() : void {
|
||||
$myclass = get_class($this);
|
||||
logger("[*] Running test: {$myclass}::{$this->getName(true)}", LOGGER_DEBUG);
|
||||
if ( \DBA::$dba->connected ) {
|
||||
// Create a transaction, so that any actions taken by the
|
||||
// tests does not change the actual contents of the database.
|
||||
|
||||
@@ -8,4 +8,16 @@ config:
|
||||
cat: system
|
||||
k: not_allowed_email
|
||||
v: 'baduser@example.com,baddomain.com,*.evil.org'
|
||||
-
|
||||
cat: system
|
||||
k: debugging
|
||||
v: true
|
||||
-
|
||||
cat: system
|
||||
k: loglevel
|
||||
v: 2
|
||||
-
|
||||
cat: system
|
||||
k: logfile
|
||||
v: tests/results/unit_test.log
|
||||
|
||||
|
||||
Reference in New Issue
Block a user