test: expand test coverage to 75% with 70 new test cases (v3.1.0)#4
Merged
Conversation
Add comprehensive test suites for 3 additional core modules: - test_extract_docs.py (26 tests, 628 lines) - JSDoc/Python docstring extraction - test_generate_diagram.py (20 tests, 459 lines) - Mermaid diagram generation - test_init_wiki.py (24 tests, 224 lines) - Wiki initialization Total: 94 test cases across 6 modules, 1,676 lines of test code Test coverage increased from ~30% to ~75% (6/8 core modules) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
This PR significantly expands the test suite, bringing test coverage from ~30% to ~75%:
Changes
New Test Files
tests/test_extract_docs.py (26 tests, 628 lines)
tests/test_generate_diagram.py (20 tests, 459 lines)
tests/test_init_wiki.py (24 tests, 224 lines)
Version Update
pyproject.tomlStatistics
Test Plan
pytest -vto verify all tests passpytest --cov=scriptsBenefits
Next Steps
After merging:
🤖 Generated with Claude Code