From 6caeb11598e82e93f358499510da7f594c3c8bb4 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 5 Jan 2022 22:14:09 +0100 Subject: [PATCH] Added output logs for swoole during API tests --- bin/test/run-api-tests.sh | 3 +++ config/test/test_config.global.php | 1 + 2 files changed, 4 insertions(+) diff --git a/bin/test/run-api-tests.sh b/bin/test/run-api-tests.sh index 3e8530b6..3f6e27e6 100755 --- a/bin/test/run-api-tests.sh +++ b/bin/test/run-api-tests.sh @@ -4,7 +4,10 @@ export DB_DRIVER=postgres export TEST_ENV=api export GENERATE_COVERAGE=${GENERATE_COVERAGE:-"no"} +# Reset logs rm -rf data/log/api-tests +mkdir data/log/api-tests +touch data/log/api-tests/output.log # Try to stop server just in case it hanged in last execution vendor/bin/laminas mezzio:swoole:stop diff --git a/config/test/test_config.global.php b/config/test/test_config.global.php index bfefab2c..41320c89 100644 --- a/config/test/test_config.global.php +++ b/config/test/test_config.global.php @@ -109,6 +109,7 @@ return [ 'process-name' => 'shlink_test', 'options' => [ 'pid_file' => sys_get_temp_dir() . '/shlink-test-swoole.pid', + 'log_file' => __DIR__ . '/../../data/log/api-tests/output.log', 'enable_coroutine' => false, ], ],