Is this code running inside IntelliJ or not?

Some of my plugin DialogwWapper tests pass when run inside IDEA and fail (deep inside com.intellij code) when I run them at the command line with gradle. They pass in IntelliJ even when I iomport the gradle project.

While I debug this, is there anyway to check whether a test is or is not running inside IDEA so I can ignore the test if it isn't? e.g. something like

if (PlatformUtil.insideIdea()) {

Please sign in to leave a comment.