-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
ctg-bugIssue is a bugIssue is a bugpriority-top-focusTop priority chosen by dev teamTop priority chosen by dev team
Milestone
Description
Description
Tests generated with UtBot sometimes can not be run via standard Intellij Idea mechanism.
To Reproduce
- Create Gradle project without any custom settings
- Add an arbitrary class and generate tests for it with JUnit5
- Try to run generated tests
Expected behavior
Tests are successfully run in Intellij Idea
Actual behavior
Test events were not received error occurs
Additional context
This problem may be fixed manually adding the following code into build.gradle file:
test {
useJUnit()
useTestNG()
useJUnitPlatform()
}But it is not obvious how to do it programmatically.
The related question was sent to Intellij Support https://intellij-support.jetbrains.com/hc/en-us/community/posts/6168668718226-Enable-Gradle-native-support-programmatically
Metadata
Metadata
Assignees
Labels
ctg-bugIssue is a bugIssue is a bugpriority-top-focusTop priority chosen by dev teamTop priority chosen by dev team
Type
Projects
Status
Done