When use HeavyPlatformTestCase, how to make idea sandbox visible
已回答
I use following code
internal class StartupTest : HeavyPlatformTestCase() {
@Test
fun test() {
val projectManager = ProjectManager.getInstance()
val openProjects: Array<Project> = projectManager.openProjects
for (project in openProjects) {
System.out.println(project.getName())
}
}
}
but idea sandbox is headless, I expect a way to "runIde" and auto callAction for single test debug, how should i do
请先登录再写评论。
Hi,
I'm sorry, but your question is unclear. What does "make idea sandbox visible" mean? What do you expect runIde and running test (?) to have in common?
I means idea gradle "runIde" task show idea sandbox window to debug, but HeavyPlatformTestCase run idea sandbox headless, how to make idea window visible when using HeavyPlatformTestCase
Tests are always run in headless environment.
Why do you need to do it? If you need to test UI, consider using intellij-ui-test-robot: https://plugins.jetbrains.com/docs/intellij/testing-plugins.html#ui-tests