Skip to content

Offering help with Unit Tests #604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
erlapso opened this issue Mar 5, 2025 · 1 comment
Closed

Offering help with Unit Tests #604

erlapso opened this issue Mar 5, 2025 · 1 comment

Comments

@erlapso
Copy link

erlapso commented Mar 5, 2025

Hi everyone! I noticed a lot of Pull Requests, particularly in relation to new features and tests.

I'd like to help improve the test coverage using CodeBeaver, an AI agent that I built (it's free for open source!).

To demonstrate what's possible, I've created a PR using CodeBeaver:
Raise LookupError in partition_all when length is invalid - Unit Tests

I kicked off CodeBeaver from one of your latest Pull Requests: Raise LookupError in partition_all when length is invalid.

What the PR demonstrates:

  • Adds 1 new test file: toolz/tests/test_itertoolz.py
  • All new tests pass ☑️
  • No existing tests required updates.
  • No bugs detected in your changes. Good job! 🐛

On top of that: CodeBeaver does not only aim for coverage but also ensures that all edge cases are considered during the testing process.

How it works:

CodeBeaver analyzes your code changes in PRs:

  • Automatically generates and updates tests
  • Opens PRs with new/updated tests
  • Helps catch bugs before they reach production

Next steps

If this interests the maintainer team, I'm happy to:

  • Walk through how the tests were generated
  • Help set up automated test generation for future PRs (takes ~5 minutes)
  • Focus on specific areas you'd like to improve coverage for

Let me know what you think! Happy to adapt this approach based on the project's needs.


About CodeBeaver

@mrocklin
Copy link
Member

mrocklin commented Mar 5, 2025

Please don't advertise your product on github issues. This is an inappropriate use of this space.

@mrocklin mrocklin closed this as completed Mar 5, 2025
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

No branches or pull requests

2 participants