java.lang.Exception: No tests found matching Method using Intellij IDEA

后端 未结 12 2248
说谎
说谎 2020-12-14 14:12

I am experiencing a strange behavior of Intellij IDEA 2016.3. Having a class with method foo and a JUnit test for the method when I get java.lang.Exceptio

12条回答
  •  悲&欢浪女
    2020-12-14 14:56

    Well, after "playing" a bit with run configurations of each unit test I noticed that each Run Config has a Build goal preset in the Before Launch option (See pic below):

    After changing Build to Build Project the tests run fine.

提交回复
热议问题