Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

VCasT-tests

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.

Getting Started

  1. Clone This Repository
git clone https://github.com/NOAA-GSL/VCasT-tests.git
  1. Install VCasT (with the dev extra, which pulls in pytest and Pillow)
pip install -e "/path/to/VCasT[all,dev]"

The vcast console script must be on PATH and importable before running any tests here.

  1. 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.
  1. Run Tests
cd VCasT-tests
pytest -v

This runs two layers of tests:

  • Unit tests (test_stats/, test_classes/, test_metstat/, test_agg/, test_plot/, test_cli/): fast, isolated tests that call vcast functions/classes directly, with no subprocesses or real GRIB/NetCDF files.
  • test_framework.py: slower, subprocess-driven integration tests, marked integration, driven by test_cases.yaml. These invoke the vcast CLI end-to-end against the datasets under examples/ and compare outputs against the fixtures under examples/*/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 integration

This works whether the repository is checked out standalone or embedded as the tests/ submodule of VCasT.

License

Unless otherwise specified, the contents of this repository are covered by the same Apache License 2.0 applied in VCasT.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages