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

UI. Gradle project. Suggest all Test sources roots for test generation #549

Closed
alisevych opened this issue Jul 19, 2022 · 1 comment · Fixed by #577 or #705
Closed

UI. Gradle project. Suggest all Test sources roots for test generation #549

alisevych opened this issue Jul 19, 2022 · 1 comment · Fixed by #577 or #705
Assignees
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-enhancement New feature, improvement or change request

Comments

@alisevych
Copy link
Member

alisevych commented Jul 19, 2022

Description

In Gradle projects test sources root can be located anywhere. Suggest all found test source roots for test generation.

Expected behavior

In Gradle project Test sources root can be located anywhere, it can be configured in build.gradle file.
So we'll need to be able to generate tests to a directory located outside src.
Test root out of content notification

Environment

Checked on IDEA Ultimate 2022.1.3
Gradle 6.3, 7.4

Potential alternatives

Current behavior forbids destination folder outside /src/test

Context

For example: https://github.com/volivan239/virt-mem-personal/blob/main/build.gradle
Now integrationTest directory can't be selected as destination folder:

@alisevych
Copy link
Member Author

@Vassiliy-Kudryashov Please have a look at the referenced project:
https://github.com/volivan239/virt-mem-personal
There is a source root in the root - and it is not found by UTBot
image

@alisevych alisevych reopened this Jul 27, 2022
Repository owner moved this from Done to In Progress in UTBot Java Jul 27, 2022
@alisevych alisevych changed the title UI. Gradle project. Test sources root can be located anywhere UI. Gradle project. Suggest all Test sources roots for test generation Aug 10, 2022
EgorkaKulikov added a commit that referenced this issue Aug 23, 2022
…#549 (#705)

* UI. Gradle project. Suggest all Test sources roots for test generation #549

* Attempts to improve the logic

Co-authored-by: Egor Kulikov <egor.k.kulikov@gmail.com>
Repository owner moved this from In Progress to Done in UTBot Java Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-enhancement New feature, improvement or change request
Projects
Archived in project
2 participants