Project executes fine from commandline but not in IntelliJ



I have a gradle project with 1 simple test in it, and when I run it in IntelliJ it throws a nullpointer.

If I run the project from commandline it works fine. I run it with it with the command "gradle test".

Is this just a config setting in IntelliJ or does someone have an idea?


1 comment


Does it help to enabled "Delegate IDE build/run actions to gradle" option in "Settings | Build... | Build Tools | Gradle | Runner"? Also you could try to set "Run tests using" option to "Gradle Test Runner".



Please sign in to leave a comment.