chore: add comprehensive pytest configuration and test infrastructure#64
Open
1234-ad wants to merge 2 commits intoruxailab:mainfrom
Open
chore: add comprehensive pytest configuration and test infrastructure#641234-ad wants to merge 2 commits intoruxailab:mainfrom
1234-ad wants to merge 2 commits intoruxailab:mainfrom
Conversation
Add pytest.ini with comprehensive testing configuration: - Test discovery patterns for consistent test detection - Multiple coverage report formats (terminal, HTML, XML) - Coverage threshold set to 60% with fail-under enforcement - Custom test markers for categorization (unit, integration, slow, etc.) - Coverage exclusions for config, deployment, and test files - Detailed output with durations and short tracebacks - Max 5 failures before stopping to speed up CI Benefits: - Standardized testing across the project - Clear test categorization with markers - Coverage tracking and reporting - CI/CD ready configuration
Add GitHub Actions workflow for automated testing: - Matrix testing across Python 3.11, 3.12, and 3.13 - Separate unit and integration test runs - Code coverage tracking with Codecov integration - Linting and formatting checks (black, flake8, isort) - Security scanning with bandit - Coverage reports and artifacts Benefits: - Automated testing on every push and PR - Multi-version Python compatibility verification - Code quality enforcement in CI/CD - Security vulnerability detection
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.
Summary
Adds comprehensive pytest configuration and testing infrastructure with GitHub Actions integration.
Changes
pytest.iniunit: Unit testsintegration: Integration testsslow: Slow running testsdiscord: Discord bot testsgithub: GitHub integration testsai: AI/ML testsrequires_api: Tests requiring external APIs.github/workflows/test-suite.ymlBenefits
Usage
Testing
Impact