You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UnitTestGenerator has too much functionality. From generating tests to validating. We should decompose the class into two separate classes. Say UnitTestGenerator and UnitTestValidator.
Let the UnitTestGenerator continue to return the generated tests to CoverAgent and let CoverAgent iterate the generated tests one-by-one and validate them.
Also we could move run_coverage into a UnitTestValidator as the generator does not use the coverage. Ideally, running coverage + processing coverage could be split into separate class which then can be used across CoverAgent, initialization of Validator and also while validating each test, but that could be a different issue.
The text was updated successfully, but these errors were encountered:
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.
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.
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.
UnitTestGenerator
has too much functionality. From generating tests to validating. We should decompose the class into two separate classes. SayUnitTestGenerator
andUnitTestValidator
.Let the
UnitTestGenerator
continue to return the generated tests toCoverAgent
and letCoverAgent
iterate the generated tests one-by-one and validate them.Also we could move
run_coverage
into aUnitTestValidator
as the generator does not use the coverage. Ideally, running coverage + processing coverage could be split into separate class which then can be used across CoverAgent, initialization of Validator and also while validating each test, but that could be a different issue.The text was updated successfully, but these errors were encountered: