Project executes fine from commandline but not in IntelliJ

已回答

Hi,

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?

 

0

Hello,

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".

 

0

请先登录再写评论。