Why does Intellij IDEA suddenly not recognize tests in test folder anymore? July 11, 2023 by Tarik OK, I fixed it. In menu, under File, there is an invalidate cache option. That fixed it!