IntelliJ IDEA Open API and Plugin Development Is Deprecated. Join our JetBrains Platform Community.

Running tests with Maven2

I'm using the new testing framework and i'm trying to run my tests from maven2. I have the surefire configure like so:

maven-surefire-plugin 2.8-SNAPSHOT idea.load.plugins false idea.home.path /opt/idea/ /home/hpalma/projectos/TapIDEA5 ]]>

After hitting lots of problem and getting pass them using plugin configurations and adding dependencies i've hit one that i can't find a solution for.
I get this error when i run the tests:

java.lang.IllegalArgumentException: Area class is not registered: IDEA_PROJECT
at com.intellij.openapi.extensions.Extensions.instantiateArea(Extensions.java:94)
at com.intellij.openapi.project.impl.ProjectImpl.&init&(ProjectImpl.java:120)
at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:212)
at com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(ProjectManagerImpl.java:137)
at com.intellij.testFramework.fixtures.impl.HeavyIdeaTestFixtureImpl.setUpProject(HeavyIdeaTestFixtureImpl.java:67)
at com.intellij.testFramework.fixtures.impl.HeavyIdeaTestFixtureImpl.setUp(HeavyIdeaTestFixtureImpl.java:58)
at com.intellij.tapestry.util.TapestryUtilsTest.initPsiManager(TapestryUtilsTest.java:63)


Any help would be great.....

0

Please sign in to leave a comment.