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
Generate unit tests in kotlin for org.jetbrains.research.testspark.core.test.strategies.JUnitTestSuiteParserStrategy to achieve 100% line coverage for this class.
Dont use @before and @after test methods.
Make tests as atomic as possible.
All tests should be for JUnit 5.
In case of mocking, use Mockito 5. But, do not use mocking for all tests.
Name all methods according to the template - [MethodUnderTest][Scenario]Test, and use only English letters.
The source code of class under test is as follows:
package org.jetbrains.research.testspark.core.test.strategies
import org.jetbrains.research.testspark.core.data.JUnitVersion
import org.jetbrains.research.testspark.core.test.TestCaseParseResult
import org.jetbrains.research.testspark.core.test.TestSuiteParserStrategy
import org.jetbrains.research.testspark.core.test.data.TestCaseGeneratedByLLM
import org.jetbrains.research.testspark.core.test.data.TestLine
import org.jetbrains.research.testspark.core.test.data.TestLineType
import org.jetbrains.research.testspark.core.test.data.TestSuiteGeneratedByLLM
class JUnitTestSuiteParserStrategy : TestSuiteParserStrategy {
<the full body of the class>
}
org.jetbrains.research.testspark.core.test.strategies.JUnitTestSuiteParserStrategy extends org.jetbrains.research.testspark.core.test.TestSuiteParserStrategy. The source code of org.jetbrains.research.testspark.core.test.TestSuiteParserStrategy is:
Frosendroska
changed the title
[Prompt-scarcity] List of cases when the prompt is not sufficient
[Prompt-scarcity] List of cases when the prompt is not sufficient (feel free to add)
Jul 26, 2024
1. Not adding enum properties to the prompt when the enum is the part of function parameters
We want to test the following class inside the TestSpark
the prompt looks like this
Generate unit tests in kotlin for org.jetbrains.research.testspark.core.test.strategies.JUnitTestSuiteParserStrategy to achieve 100% line coverage for this class.
Dont use @before and @after test methods.
Make tests as atomic as possible.
All tests should be for JUnit 5.
In case of mocking, use Mockito 5. But, do not use mocking for all tests.
Name all methods according to the template - [MethodUnderTest][Scenario]Test, and use only English letters.
The source code of class under test is as follows:
org.jetbrains.research.testspark.core.test.strategies.JUnitTestSuiteParserStrategy extends org.jetbrains.research.testspark.core.test.TestSuiteParserStrategy. The source code of org.jetbrains.research.testspark.core.test.TestSuiteParserStrategy is:
Generate public classes and public methods. Response only a code with tests between `, do not provide any other text.
As you can notice, in this prompt we do not have any information about parameters in
JUnitVersion
, therefore generated tests will not be compilableThe text was updated successfully, but these errors were encountered: