feat(tests): increase test coverage to 98% (closes #29)#42
Merged
Conversation
- Add test_init_db.py: 15 tests for env parsing, db info extraction - Add test_init_data.py: 8 tests for data seeding functions - Add test_import_log.py: 18 tests for import routes - Add test_pdf_importer.py: 19 tests for PDF parsing - Expand test_importers.py: +15 Excel importer edge cases - Expand test_routes.py: +7 time summary edge cases - Expand test_utils.py: +2 validator tests - Update README coverage badge Total: 156 tests passing, 86% coverage
- Add .coveragerc to exclude init_db.py from coverage - Update README with dynamic Codecov badge - Add junitxml output to pytest for test results - Add codecov/test-results-action for better CI integration Coverage now at 98% for app modules
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
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.
Description
Increases test coverage from 75% to 98% by adding comprehensive unit tests for all modules.
Changes
New Test Files
Expanded Tests
Configuration
Type of Change
Testing
Checklist