Lctio Testing

Use when writing or updating pytest coverage for TIFF handling, CLI behavior, or other tests in this repository.

llnl Updated

File contents

LCTIO Testing

Use this skill for test additions, fixture design, and coverage-oriented validation.

Pytest Conventions

  • Test files: test_*.py
  • Test classes: Test*
  • Test functions: test_*
  • Prefer tmp_path for filesystem tests.

Commands

  • python -m pytest
  • pytest --cov=lctio --cov-report=term
  • pytest --cov=lctio --cov-report=term --cov-report=xml:reports/junit/coverage.xml --junit-xml=reports/junit/pytest.xml

Expectations

  • New behavior should ship with direct tests.
  • Use coverage output to identify untested code paths when a change is non-trivial.
  • Keep tests deterministic; prefer seeded random data for generated image fixtures.

TIFF-Specific Guidance

For compressed TIFF fixtures and dtype edge cases, read references/tiff-fixtures.md.

llnl/lctio commit 11f88a2aab

Frequently asked questions

npx get-skill add llnl/lctio-testing