Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.19 KB

README.md

File metadata and controls

66 lines (42 loc) · 1.19 KB

Cascade

Development

Cascade should work with Python 3.10 / 3.11 although other versions could work. Dependencies should first be installed with:

pip install -r requirements.txt

Testing

The pip install command should have installed a suitable version of pytest.

pytest --version

Depending on your python install you may have to run python -m pytest instead.

Unit Tests

For unit tests, you can run the following command:

pytest

Integration Tests

Integration tests require the Kafka service to be running. You can launch it with:

docker compose up -d

This will launch:

Before running integration tests, it's best to purge all existing messages. This can be done in the Kafbat UI (under the Topics tab) or by fully restarting the container:

docker compose down
docker compose up -d

You should then be able to run integration tests with the following command:

pytest -m integration

Documentation

Documentation can be generated using pdoc:

pdoc --mermaid src/cascade