diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-01-15 19:25:09 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-01-15 19:25:09 +0100 |
commit | ecd4754f6d904158606b39ce40af3d834e4550e0 (patch) | |
tree | 39f9c1e71ba06cf62f768af34cd48bc0f0e977fa /tests/unit/UnitTestCase.php | |
parent | f71033b30dc20c67e6ed336178d1ac0144ea5c8a (diff) | |
download | volse-hubzilla-ecd4754f6d904158606b39ce40af3d834e4550e0.tar.gz volse-hubzilla-ecd4754f6d904158606b39ce40af3d834e4550e0.tar.bz2 volse-hubzilla-ecd4754f6d904158606b39ce40af3d834e4550e0.zip |
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.
Diffstat (limited to 'tests/unit/UnitTestCase.php')
-rw-r--r-- | tests/unit/UnitTestCase.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/UnitTestCase.php b/tests/unit/UnitTestCase.php index 97ac1576e..0bf7b547a 100644 --- a/tests/unit/UnitTestCase.php +++ b/tests/unit/UnitTestCase.php @@ -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. |