Skip to content

test: improve test coverage from 0% to 99%#11

Merged
GeiserX merged 1 commit intomainfrom
test/improve-coverage
Apr 24, 2026
Merged

test: improve test coverage from 0% to 99%#11
GeiserX merged 1 commit intomainfrom
test/improve-coverage

Conversation

@GeiserX
Copy link
Copy Markdown
Owner

@GeiserX GeiserX commented Apr 24, 2026

Summary

  • Rewrote test suite from 12 shallow tests (0% source coverage) to 68 comprehensive tests achieving 99% coverage across all 4 source modules
  • Mocked Selenium, Playwright, and undetected_chromedriver at import level so tests run in CI without heavy browser dependencies
  • Covered __main__ entry point blocks via runpy.run_path for main.py, main2.py, and old_main.py
  • Added requests to requirements-test.txt since source modules import it at module level

Test plan

  • All 68 tests pass locally
  • Coverage: main.py 98%, main2.py 99%, old_main.py 100%, old_video.py 100% (total 99%)
  • CI workflow passes on GitHub Actions

Rewrite test suite with 68 tests covering all 4 source modules.
Mock Selenium, Playwright, and undetected_chromedriver at import
level so tests run without heavy browser dependencies. Cover
__main__ blocks via runpy. Add requests to test dependencies.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

Warning

Rate limit exceeded

@GeiserX has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 28 minutes and 52 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 28 minutes and 52 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bf1fe7f6-50c7-45b2-9c42-789b5b37bb6b

📥 Commits

Reviewing files that changed from the base of the PR and between cfca71b and 26e58a5.

📒 Files selected for processing (2)
  • requirements-test.txt
  • tests/test_web_mirror.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/improve-coverage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.98%. Comparing base (cfca71b) to head (26e58a5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##            main      #11       +/-   ##
==========================================
+ Coverage   0.00%   98.98%   +98.98%     
==========================================
  Files          4        4               
  Lines        197      197               
==========================================
+ Hits           0      195      +195     
+ Misses       197        2      -195     

see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@GeiserX GeiserX merged commit 89f19ea into main Apr 24, 2026
5 checks passed
@GeiserX GeiserX deleted the test/improve-coverage branch April 24, 2026 23:02
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.

1 participant