feat: Set up comprehensive Python testing infrastructure#18
Open
llbbl wants to merge 1 commit intovision4robotics:mainfrom
Open
feat: Set up comprehensive Python testing infrastructure#18llbbl wants to merge 1 commit intovision4robotics:mainfrom
llbbl wants to merge 1 commit intovision4robotics:mainfrom
Conversation
- Add Poetry package manager with pyproject.toml configuration - Migrate dependencies from requirement.txt to Poetry - Configure pytest with coverage reporting (80% threshold) - Set up testing directory structure (tests/, unit/, integration/) - Add comprehensive shared fixtures in conftest.py - Create custom pytest markers (unit, integration, slow) - Configure coverage reporting (HTML/XML output) - Add .gitignore with testing and development entries - Create validation tests to verify infrastructure setup - Set up Poetry scripts for running tests (test/tests commands) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
Set Up Comprehensive Python Testing Infrastructure
Summary
This PR establishes a complete testing infrastructure for the PySOT (Python Single Object Tracking) project, providing developers with a ready-to-use testing environment.
Changes Made
pyproject.tomlconfigurationrequirement.txtto Poetry formattests/,unit/, andintegration/subdirectoriesconftest.pyfor common testing scenariospoetry run test/poetry run tests).gitignorewith testing-related entries and development filesTesting Infrastructure Components
Dependencies Added
pytest- Main testing frameworkpytest-cov- Coverage reportingpytest-mock- Mocking utilitiesConfiguration Features
unit,integration,slowfor test categorizationShared Fixtures Available
temp_dir- Temporary directory for file operationsmock_config- Mock configuration objectssample_image- Sample image data for vision testssample_bbox- Sample bounding box coordinatesmock_tracker,mock_model,mock_logger- Mock objects for testingsample_dataset_config- Mock dataset configurationmock_video_data- Mock video sequence dataRunning Tests
After this PR is merged, developers can immediately start using the testing infrastructure:
Validation
The setup includes comprehensive validation tests that verify:
All validation tests pass, confirming the infrastructure is ready for use.
Notes
requirement.txtfile has been migrated to Poetry format inpyproject.tomlpyproject.tomlif neededpysotandtoolkitpackages with appropriate coverage configuration🤖 Generated with Claude Code