This document describes how to run the test suites for sMAP.
The easiest way to run the tests is using the provided Docker environment, which includes all necessary dependencies (Python 2.7, Twisted, NumPy, SciPy, etc.).
docker build -t smap:ci .docker run --rm smap:ci trial smap- Core Logic:
docker run --rm smap:ci trial smap.test - Data Operators:
docker run --rm smap:ci trial smap.ops.test - Archiver Cache:
docker run --rm smap:ci trial smap.archiver.test
docker run --rm smap:ci bash -c "cd schema/test && python test.py"To run tests locally, you need Python 2.7 and the dependencies listed in python/requirements.txt and Dockerfile.
cd python
export PYTHONPATH=$PYTHONPATH:.trial smapThe project is configured with GitLab CI. Every push triggers the .gitlab-ci.yml pipeline, which:
- Builds the Docker image.
- Runs unit tests for core logic and operators.
- Runs archiver cache tests.
- Validates Avro schemas.
Refer to .gitlab-ci.yml for the detailed pipeline configuration.