Skip to content

Fixed #19: Add robust unit testing framework and CI/CD pipeline (#19)#72

Open
debanganghosh08 wants to merge 2 commits intoopenMF:mainfrom
debanganghosh08:main
Open

Fixed #19: Add robust unit testing framework and CI/CD pipeline (#19)#72
debanganghosh08 wants to merge 2 commits intoopenMF:mainfrom
debanganghosh08:main

Conversation

@debanganghosh08
Copy link

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!

@staru09
Copy link
Member

staru09 commented Jan 20, 2026

  1. We don't really need tests for what you have added the tests.
  2. Please remove the pycache from the PR
  3. I have added some feedback in the PR, please address them

@debanganghosh08
Copy link
Author

  1. We don't really need tests for what you have added the tests.
  2. Please remove the pycache from the PR
  3. I have added some feedback in the PR, please address them

Sure! I will remove the pycache and address the feedback

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.

2 participants