Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTBot doesn't show test source from other modules for Gradle project #1060

Closed
tyuldashev opened this issue Oct 3, 2022 · 0 comments · Fixed by #1119
Closed

UTBot doesn't show test source from other modules for Gradle project #1060

tyuldashev opened this issue Oct 3, 2022 · 0 comments · Fixed by #1119
Assignees
Labels
ctg-bug Issue is a bug

Comments

@tyuldashev
Copy link
Collaborator

Description

Assume there is Gradle project where two modules exist, one with test source and second one without. When user tries to generate tests in the latter module UTBot shows error instead of suggesting folder from the first module or to create new one.

To Reproduce

Steps to reproduce the behavior:

  1. Create Gradle project with two modules, one of which has test sources deleted (or use attached one)
  2. Open Junit5GradleJava11\driver\src\main\java\org\test\Printer.java
  3. Try to generate tests with UTBot (Alt-Shift-U)

Expected behavior

UTBot opens Generate tests dialog and either suggests test folders from another module or to create test source in current module.

Actual behavior

UTBot shows error and doesn't open dialog Generate Tests
Visual proofs (screenshots, logs, images)

image

Additional context

No such problem in Intellij type project - UTBot suggest to create test folder.

Pleas note that currently user can select test roots from another module only in Gradle project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug Issue is a bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants