This repository contains a collection of test datasets and example workflows for use with VCasT. It is maintained to illustrate and validate core functionalities of VCasT, acting as a reference for:
- Sample configuration files to demonstrate real or synthetic use cases.
- Example scripts illustrating typical tasks such as data processing, statistical analysis, and plotting.
- Test datasets that VCasT can process during automated tests or manual exploration.
- Clone This Repository
git clone https://github.com/NOAA-GSL/VCasT-tests.git- Install VCasT (with the
devextra, which pulls inpytestandPillow)
pip install -e "/path/to/VCasT[all,dev]"The vcast console script must be on PATH and importable before running any tests here.
- Explore the Examples
- Look inside examples/ for small demos illustrating how to configure and run VCasT.
- Use the datasets in this repository to run tests locally or within a CI environment.
- Run Tests
cd VCasT-tests
pytest -vThis runs two layers of tests:
- Unit tests (
test_stats/,test_classes/,test_metstat/,test_agg/,test_plot/,test_cli/): fast, isolated tests that callvcastfunctions/classes directly, with no subprocesses or real GRIB/NetCDF files. test_framework.py: slower, subprocess-driven integration tests, markedintegration, driven bytest_cases.yaml. These invoke thevcastCLI end-to-end against the datasets underexamples/and compare outputs against the fixtures underexamples/*/expected_outputs/.
During day-to-day development, run just the fast unit tests:
pytest -m "not integration"Or just the integration suite (useful after touching parsing/aggregation/plotting logic, since that's what the fixtures under examples/ exercise end-to-end):
pytest -m integrationThis works whether the repository is checked out standalone or embedded as the tests/ submodule of VCasT.
Unless otherwise specified, the contents of this repository are covered by the same Apache License 2.0 applied in VCasT.