Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
SESSION := "cm12345-1"
RUNNER := `command -v docker || command -v podman || true`

TEST_CONFIG := "tests/system_tests/config.yaml"

[doc('Start the example services via compose and run the blueapi server')]
dev-server: compose serve

Expand All @@ -26,11 +28,11 @@ compose +ARGS="up -d --no-recreate": init-example-services _check-runner
serve *OPTS:
#!/usr/bin/env bash
source tests/system_tests/.env
uv run blueapi -c tests/system_tests/config.yaml {{ OPTS }} serve
uv run blueapi -c {{ TEST_CONFIG }} {{ OPTS }} serve

[doc('Run a plan using the blueapi CLI')]
run PLAN PARAMS:
uv run blueapi -c tests/system_tests/config.yaml controller run -i {{ SESSION }} {{ PLAN }} '{{ PARAMS }}'
uv run blueapi -c {{ TEST_CONFIG }} controller run -i {{ SESSION }} {{ PLAN }} '{{ PARAMS }}'

[doc('Regenerate schemas, run pre-commit checks and type checking')]
lint:
Expand Down Expand Up @@ -58,7 +60,7 @@ repl:
uv run --with ptpython ptpython -i <(cat << EOF
from blueapi.client import BlueapiClient
from blueapi.client.rest import ServiceUnavailableError
bc = BlueapiClient.from_config_file("tests/system_tests/config.yaml").with_instrument_session("cm12345-1")
bc = BlueapiClient.from_config_file("{{ TEST_CONFIG }}").with_instrument_session("cm12345-1")
try:
bc.login()
except KeyboardInterrupt:
Expand All @@ -74,4 +76,4 @@ repl:

[doc('Stream documents from the stomp message bus - see blueapi controller listen')]
listen FORMAT="full":
uv run blueapi -c tests/system_tests/config.yaml controller -o {{ FORMAT }} listen
uv run blueapi -c {{ TEST_CONFIG }} controller -o {{ FORMAT }} listen
Loading