-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a bugspec-regressionRegressionRegressionstatus-verifiedBug fix is verifiedBug fix is verified
Milestone
Description
Description
When user tries to generate parametrized tests with TestNG test framework then no correct tests are generated, but only with internal errors.
To Reproduce
- Install UnitTestBot plugin built from main in IntelliJ IDEA (used 2023.7.4765)
- Generate parametrized tests with TestNG for some code, for example simple:
public class Simple {
public int div(int a, int b) {
return a / b;
}
}Expected behavior
Some tests which could be executed are created.
Actual behavior
One broken test is generated:
///region Errors report for div
public void testDiv_errors() {
// Couldn't generate some tests. List of errors:
//
// 1 occurrences of:
// Expected primitive, string, null or CgExpression, but got: class java.util.Collections$SingletonList
}
///endregionEnvironment
IntelliJ IDEA version - 2023.1.3
JDK - 11+
Additional context
That's not reproducible on the latest plugin release - 2023.3, so consider this as regression error.
Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorctg-bugIssue is a bugIssue is a bugspec-regressionRegressionRegressionstatus-verifiedBug fix is verifiedBug fix is verified
Type
Projects
Status
Done