java.lang.Exception: No tests found matching Method using Intellij IDEA
<p>I am experiencing a strange behavior of Intellij IDEA 2016.3. Having a class with method <code>foo</code> and a JUnit test for the method when I get <code>java.lang.Exception: No tests found matching Method foo</code> when running the test. After I do <code>mvn test</code> it succeeds and then running the unit test right after executing mvn command it suddenly runs green. Seems like IDEA does not compile automatically. How can I fix this?</p>

<p>P.S. No settings were altered after upgrading to v. 2016.3</p>