Skip to content

Conversation

@devbm7
Copy link
Owner

@devbm7 devbm7 commented Oct 30, 2025

Enhanced test suite across multiple modules:

  • Added 15 new CLI tests covering all commands (explain, examples, test, diagram)
  • Added 11 new tester tests for edge cases and additional patterns
  • Created new test_api.py with 11 tests for public API wrapper functions
  • Added 6 new explainer tests for various regex features
  • Added to_dict() method to MatchResult class for CLI integration
  • Updated pytest configuration to exclude src directory from test collection

Test coverage improved from 68% to 70.19%, now passing the required threshold. All 92 tests passing successfully.

🤖 Generated with Claude Code

Enhanced test suite across multiple modules:
- Added 15 new CLI tests covering all commands (explain, examples, test, diagram)
- Added 11 new tester tests for edge cases and additional patterns
- Created new test_api.py with 11 tests for public API wrapper functions
- Added 6 new explainer tests for various regex features
- Added to_dict() method to MatchResult class for CLI integration
- Updated pytest configuration to exclude src directory from test collection

Test coverage improved from 68% to 70.19%, now passing the required threshold.
All 92 tests passing successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
cursor[bot]

This comment was marked as outdated.

The CI was failing because running 'pytest' directly doesn't load the
pytest-cov plugin properly in some environments. Using 'python -m pytest'
ensures pytest-cov is available and the coverage options from pyproject.toml
are recognized.

This fixes the test workflow to properly run tests with coverage checking.
The pyrailroad package (used for diagram generation) requires Python 3.10+.
All available versions of pyrailroad (0.3.0 through 0.4.0) require Python >=3.10.

Changes:
- Updated requires-python from >=3.8 to >=3.10 in pyproject.toml
- Removed Python 3.8 and 3.9 from classifiers
- Updated CI test matrix to test on Python 3.10, 3.12, and 3.13

This fixes the pip installation error on Python 3.8:
"ERROR: Could not find a version that satisfies the requirement pyrailroad>=0.4.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants