Testing GUI component
已回答
We have many tests for our plugin via `com.intellij.openapi.externalSystem.test.ExternalSystemImportingTestCase`, however it does not cover any front on GUI. For example, if I implemented some GUI behavior under `com.intellij.openapi.components.ProjectComponent#projectOpened` to automatically open project view on project open, what would be recommended way to make sure the GUI component is also behaving correctly? Are there existing examples I can follow?
请先登录再写评论。
Hi, this base test class was intended to use mostly in a headless mode. However you could try to add assertions for GUI models after the import. You can find some samples in com.intellij.ide.projectWizard.ProjectWizardTestCase and in it's inheritors.