Fixed #19: Add robust unit testing framework and CI/CD pipeline (#19)#72
Open
debanganghosh08 wants to merge 2 commits intoopenMF:mainfrom
Open
Fixed #19: Add robust unit testing framework and CI/CD pipeline (#19)#72debanganghosh08 wants to merge 2 commits intoopenMF:mainfrom
debanganghosh08 wants to merge 2 commits intoopenMF:mainfrom
Conversation
Member
|
Author
Sure! I will remove the pycache and address the feedback |
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.
I've implemented a comprehensive testing framework for the community-ai repository to resolve Issue #19. My goal was to create a foundation that is maintainable, lightweight, and automated.
Key Changes:
✅ Standardized Testing: Introduced pytest and pytest-mock as the primary testing tools.
✅ PII Removal Logic: Added unit tests for pii_remocval.py. During testing, I identified and fixed a 'greedy' regex bug in remove_name_lines that was accidentally deleting non-PII content.
✅ Summarizer Coverage: Implemented mocked API tests for summarizer.py to verify prompt logic without requiring external LLM credits.
✅ Refactored Repo Cloner: Refactored repo_cloner.py into a modular function. This allowed for mocking the Selenium driver, ensuring the script is now testable in headless environments.
✅ GitHub Actions: Created a .github/workflows/run-tests.yml pipeline that automatically runs the test suite on every push and pull request.
🏆 I've verified these tests in a fresh virtual environment to ensure zero dependency leaks.
Looking forward to your feedback!