This directory contains the current pytest-based test suite for GloViTa.
The tests primarily cover:
- dataset classes
- augmentation policy construction
- dataset factory / dataloader wiring
The test suite is useful for:
- validating refactors
- checking that config/factory integration works
- smoke-testing new dataset additions
tests/
├── conftest.py
├── test_all_datasets.py
├── test_augmentations.py
├── test_datamodules.py
├── test_generic_image_dataset.py
└── test_datasets.py
test_datamodules.py covers the dataset factory and dataloader path.
Run everything:
pytestVerbose output:
pytest -vRun one file:
pytest tests/test_datamodules.pyCurrent markers used in the suite include:
unitintegrationrequires_dataslowaugmentationdatamodule
Examples:
pytest -m unit
pytest -m "integration and requires_data"
pytest -m "not slow"
pytest -m augmentationSome tests require real dataset files to be present locally. Those are marked with:
integrationrequires_data
If the expected dataset path is missing, those tests usually skip rather than fail.
pytest tests/test_datamodules.py -vpytest tests/test_augmentations.py -vpytest -m "unit and not slow"When you add a new dataset, check at least:
- the dataset config class exists
- the dataset is registered in the dataset factory
- one dataloader batch can be constructed
In practice, that usually means updating:
tests/conftest.py- and re-running:
tests/test_datasets.pytests/test_datamodules.py
For a new augmentation policy, re-run:
pytest tests/test_augmentations.py -vThis is the quickest sanity check that the policy module still builds valid train/test transforms.