Skip to content

Commit

Permalink
Functional tests bootstrap: build RR start command based on the curre…
Browse files Browse the repository at this point in the history
…nt platform
  • Loading branch information
roxblnfk committed Dec 9, 2024
1 parent 40f6299 commit 552c26f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Functional/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
chdir(__DIR__ . '/../..');
require_once __DIR__ . '/../../vendor/autoload.php';

$sysInfo = \Temporal\Testing\SystemInfo::detect();

$environment = Environment::create();
$environment->startTemporalTestServer();
(new SearchAttributeTestInvoker)();
$environment->startRoadRunner('./rr serve -c .rr.silent.yaml -w tests/Functional');
$environment->startRoadRunner(
rrCommand: sprintf('%s serve -c .rr.silent.yaml -w tests/Functional', $sysInfo->rrExecutable),
);
register_shutdown_function(fn() => $environment->stop());

// Default feature flags
Expand Down

0 comments on commit 552c26f

Please sign in to comment.