Skip to content

Testing Guide

OxiDex has a comprehensive testing strategy including unit tests, integration tests, and ExifTool comparison tests.

Testing Overview

Comparison Testing

The comparison/ directory contains resources for validating OxiDex against ExifTool:

Running Tests

bash
# Run all tests (always use --release due to memory requirements)
cargo test --release

# Run specific test module
cargo test --release parsers::jpeg

# Run with output
cargo test --release -- --nocapture

# Run ExifTool comparison tests
cargo test --release --features exiftool-comparison

Test Organization

tests/
├── fixtures/           # Test images and files
│   ├── jpeg/          # JPEG test files
│   ├── tiff/          # TIFF test files
│   └── ...
├── integration/       # Integration tests
└── comparison/        # ExifTool comparison infrastructure

Released under the GPL-3.0 License.