-
Notifications
You must be signed in to change notification settings - Fork 323
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
Split UTGenerator into generator and validator #206
Split UTGenerator into generator and validator #206
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Issue Codium-ai#170 aims to tackle the refactor of UnitTestGenerator and this is an attempt to split UnitTestGenerator into generator and validator. This PR is a first of a series of refactoring we can apply to UnitTestGenerator. * Created a new class `UnitTestValidator` by copying running, validating and processing coverage from `UnitTestGenerator` * Doesn't include any cleanup or optimization and kept the PR to be minimal structural changes. * Use prompt from UnitTestGenerator when storing a failed test into the database.
9ea678b
to
b5d96b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go.
User description
Issue #170 aims to tackle the refactor of UnitTestGenerator and
this is an attempt to split UnitTestGenerator into generator and
validator. This PR is a first of a series of refactoring we can
apply to UnitTestGenerator.
Created a new class
UnitTestValidator
by copying running,validating and processing coverage from
UnitTestGenerator
Doesn't include any cleanup or optimization and kept the PR
to be minimal structural changes.
Use prompt from UnitTestGenerator when storing a failed test
into the database.
PR Type
enhancement, tests
Description
UnitTestGenerator
by splitting its functionality into two separate classes:UnitTestGenerator
andUnitTestValidator
.UnitTestValidator
intoCoverAgent
for handling test validation and coverage checks.UnitTestGenerator
by removing validation and coverage-related methods.UnitTestValidator
to ensure proper validation and error handling.UnitTestValidator
class and its integration.Changes walkthrough 📝
CoverAgent.py
Integrate UnitTestValidator into CoverAgent for validation
cover_agent/CoverAgent.py
UnitTestValidator
class toCoverAgent
.UnitTestValidator
for validation.UnitTestValidator
.UnitTestGenerator.py
Simplify UnitTestGenerator by removing validation logic
cover_agent/UnitTestGenerator.py
generate_tests
method.UnitTestValidator.py
Introduce UnitTestValidator for test validation and coverage
cover_agent/UnitTestValidator.py
UnitTestValidator
class for test validation.test_CoverAgent.py
Update CoverAgent tests to incorporate UnitTestValidator
tests/test_CoverAgent.py
UnitTestValidator
.test_UnitTestGenerator.py
Remove validation tests from UnitTestGenerator tests
tests/test_UnitTestGenerator.py
UnitTestGenerator
.test_UnitTestValidator.py
Add tests for UnitTestValidator functionality
tests/test_UnitTestValidator.py
UnitTestValidator
.