Add comprehensive model-free unit coverage across animl-lite core modules - #16
Merged
Merged
Conversation
Co-authored-by: tkswanson <4371698+tkswanson@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add unit test suite for animl-lite modules and utilities
Add comprehensive model-free unit coverage across animl-lite core modules
Aug 19, 2026
tkswanson
marked this pull request as ready for review
August 19, 2026 20:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a broad, fast unit test suite for
animl-litefocused on core business logic and utility behavior, while avoiding external model/GPU dependencies. It introduces dedicated coverage for utilities, file management/data structures, export formats, ReID distance metrics, and pipeline orchestration via mocks.Test harness + dependency isolation
tests/conftest.pywith reusable fixtures and import-time stubs for optional heavy dependencies (onnxruntime,exiftool).Utilities + constants (
tests/test_utils.py)File management + data structures (
tests/test_file_management.py)csv/json/yaml), prompt-driven file checks,WorkingDirectory,active_times,sequence_calculation,ManifestGenerator, andmanifest_dataloader.Export formats (
tests/test_export.py)ReID distance metrics (
tests/test_reid_distance.py)remove_diagonal, euclidean/cosine distance functions, metric dispatch, and batched/non-batched distance parity.Pipeline orchestration (
tests/test_pipeline.py)from_paths/from_configbranch coverage with mocked detector/classifier/video/export/visualization dependencies, including detect-only, sequence/single classification, cached detections, and custom detector class-map paths.Repo hygiene for test delivery
.gitignoreto stop ignoringtests/, so the new suite is tracked in source control.