-
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 generatorcomp-contest-estimatorIssue is related to contest estimatorIssue is related to contest estimatorctg-bugIssue is a bugIssue is a bug
Description
Description
The name of the test class generated in Contest Estimator for nested class does not match with the corresponding filename which leads to a compilation error (see an attached error).
To Reproduce
Steps to reproduce the behavior:
- Run ContestEstimator for any nested class (for example,
org.antlr.v4.codegen.target.JavaScriptTarget$JavaStringRenderer)
Expected behavior
Correct tests are generated, test class would be compiled.
Actual behavior
The generated test file could not be compiled because of a wrong class name.
Visual proofs (screenshots, logs, images)
Compilation errors: C:\work\UTBotJava\utbot-junit-contest\build\output\test_candidates\antlr\org\antlr\v4\codegen\target\JavaScriptTarget_JavaStringRendererTest.java:11: error: class JavaStringRendererTest is public, should be declared in a file named JavaStringRendererTest.java
public final class JavaStringRendererTest {
^
1 error
Environment
Contest Estimator, 60s+ second for generation preferred.
Additional context
No additional context.
Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-contest-estimatorIssue is related to contest estimatorIssue is related to contest estimatorctg-bugIssue is a bugIssue is a bug
Type
Projects
Status
Done