Skip to content

Commit

Permalink
Documentation: Describe how to install the Python test sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jan 11, 2024
1 parent 9ecdf25 commit d3ec901
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions DEVELOP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,26 @@ Run CrateDB and Prometheus::

docker compose --file tests/docker-compose.yaml up

Set up Python sandbox::

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-test.txt

Run integration tests::

pytest

Run services in background (FYI)::
Ad hoc deployment
=================

You can also use the Docker Compose service definition to run both CrateDB
and Prometheus in the background, by using DC's ``--detach`` option::

# Start.
docker compose --file tests/docker-compose.yaml up --detach

# Inspect logs.
Then, for inspecting the log output of the background services, use this command::

docker compose --file tests/docker-compose.yaml logs --follow

Maintaining dependencies
Expand Down

0 comments on commit d3ec901

Please sign in to comment.