If you are using various libaries for testing
for example: JUnit and TestNG review your imports, you might have imported
@Test from TestNG instead of @Test from Junit
Human mistake was the reason the test was not being detected and excuted as expected