Closed
Description
Description
When generate test for nested class its generated with name like this Outer_InnerTest
while file name is InnerTest.java
, which makes is uncompilable.
To Reproduce
- Install UnitTestBot plugin built from main in IntelliJ IDEA
- Add code sample shown below.
- Set caret inside
Inner
class. - Invoke test generation.
class Outer {
public static class Inner {
public int f() {
return 0;
} // put caret here
}
}
Expected behavior
Generated tests could be executed.
Actual behavior
Generated test public final class Outer_InnerTest {...
is inside file InnerTest.java
and fails during compilation.
Additional context
Same problem for fuzzing/symbolic, pre-existing in 2023.3 plugin version.
Metadata
Metadata
Assignees
Type
Projects
Status
Done