There might be different scenarios as people have stated in earlier answers. Here i will discuss two or three issues that have helped me solve this. This could be an IDE bug. For illustration @Joel Costigliola described a situation where Eclipse didn't handle a Maven "test" tree accurately: see this https://bongacamsmature60008.blogdanica.com/36461986/top-bongacam-secrets