Skip to content

Tests for kotlin in Java are generated in a wrong root #2066

@CaelmBleidd

Description

@CaelmBleidd

Description

When we generate tests in a kotlin project written in Java language, they are put into test/kotlin folder, which is wrong since they cannot be executed from it.

To Reproduce

Steps to reproduce the behavior:

  1. Create an empty kotlin project with Gradle build system
  2. Create a kotlin (or a Java) class with a method
  3. Run generation in Java for this method
  4. Try to run generated test cases

Expected behavior

Successfully generated and runnable tests

Actual behavior

No tests were found.

Visual proofs (screenshots, logs, images)
image

Environment

There is no specific environment.

Additional context

There is no additional context.

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorctg-bugIssue is a bug

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions