Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit fe8ea7f

Browse files
committed
Remove Tracy from tests
It wasn't really used so let's not worry about mkdir and permissions in `phpunit-bootstrap.php`... This also reverts f77af2e – we don't need to ".keep" test-logs in the repository.
1 parent 718a29f commit fe8ea7f

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

dev-env/test-logs/.keep

Whitespace-only changes.

dev-env/test-logs/.tracy/.keep

Whitespace-only changes.

docker-compose-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ services:
3232
image: versionpress/wordpress:cli
3333
environment:
3434
VP_DIR: /opt/versionpress
35-
VP_TESTS_LOG_DIR: /var/opt/versionpress/logs/.tracy
3635
PHP_IDE_CONFIG: serverName=VersionPress-tests
3736
volumes:
3837
# !!! This must be kept in sync with wordpress-cli-image/Dockerfile
@@ -48,7 +47,6 @@ services:
4847
image: versionpress/wordpress:cli
4948
environment:
5049
VP_DIR: /opt/versionpress
51-
VP_TESTS_LOG_DIR: /var/opt/versionpress/logs/.tracy
5250
PHP_IDE_CONFIG: serverName=VersionPress-tests
5351
volumes:
5452
# !!! This must be kept in sync with wordpress-cli-image/Dockerfile
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
<?php
22

3-
use Tracy\Debugger;
4-
use VersionPress\Tests\Selenium\SeleniumTestCase;
53
use VersionPress\Tests\Utils\TestConfig;
64

75
require_once(__DIR__ . '/../vendor/autoload.php');
86

9-
// Internal logs for things like exceptions or `Debugger::log` calls.
10-
// Location of PHPUnit logs is dictated externally, see docker-compose.yml or CLI invocations.
11-
$logDir = getenv('VP_TESTS_LOG_DIR') ? getenv('VP_TESTS_LOG_DIR') : sys_get_temp_dir() . '/vp-logs/.tracy';
12-
@mkdir($logDir);
13-
Debugger::enable(Debugger::DEVELOPMENT, $logDir);
14-
157
TestConfig::$defaultConfigFile = __DIR__ . '/test-config.yml';
168
PHPUnit_Extensions_Selenium2TestCase::shareSession(true);

0 commit comments

Comments
 (0)