# Lctio Testing

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

- Skill: `llnl/lctio-testing` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add llnl/lctio-testing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/llnl/lctio-testing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: llnl (https://skillmd.com/u/llnl)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/llnl/lctio-testing

---


# 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](references/tiff-fixtures.md).

