-
Notifications
You must be signed in to change notification settings - Fork 23
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
Render uncompilable test suite if it was successfully parsed #370
Render uncompilable test suite if it was successfully parsed #370
Conversation
@@ -23,14 +21,10 @@ data class TestGenerationData( | |||
// changing parameters with a large prompt | |||
var polyDepthReducing: Int = 0, | |||
var inputParamsDepthReducing: Int = 0, | |||
|
|||
// list of correct test cases during the incorrect compilation | |||
val compilableTestCases: MutableSet<TestCaseGeneratedByLLM> = mutableSetOf(), |
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.
I removed this variable because we never used its value (only wrote in it); test cases that are rendered in the sidebar are taken from Report.testCaseList
variable.
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.
Left an explanation of removal of TestGenerationData.compilableTestCases
.
...src/main/kotlin/org/jetbrains/research/testspark/core/generation/llm/LLMWithFeedbackCycle.kt
Show resolved
Hide resolved
…ationData.compilableTestCases` field `TestGenerationData.compilableTestCases` was only used to store test cases. These stored tests were never used afterward, due to `Report`'s `testCaseList`, from which all tests were retrieved for render. Authored-By: Vladislav Artiukhov
…GENERATED` result code
280dfc9
to
e2039b0
Compare
…ns-Research#370) * feat: render parsable but uncompilable test cases & remove `TestGenerationData.compilableTestCases` field `TestGenerationData.compilableTestCases` was only used to store test cases. These stored tests were never used afterward due to `Report`'s `testCaseList`, from which all tests were retrieved for render. Authored-By: Vladislav Artiukhov * feat: generate Javadoc comments for `Report` via AI * fix: apply ktlint * fix: `PromptManager`'s javadoc minor change * feat: check that test suite is present for `NO_COMPILABLE_TEST_CASES_GENERATED` result code * publish: core version `3.0.1` * fix: apply ktlint --------- Co-authored-by: Vladislav Artiukhov <[email protected]>
Description of changes made
See the rationale in Render uncompilable test suite if it was successfully parsed #312.
TestGenerationData.compilableTestCases
member field because it was never read (we only wrote compilable test cases into it); test cases that are rendered in the sidebar tab are read fromReport
instance (see the use ofLLMWithFeedbackCycle.recordReport
function).Why is a merge request needed
It improves UX of LLM-based test generation for complex CUTs.
Other notes
Closes #312
You may test the implementation on
PromptManager
class; it's complex enough.Undone
Does it affect headless mode in any sense?