By default Maven uses [the following naming conventions][1] when looking for tests to run:
Test*, *Test, *Tests (has been added in Maven Surefire Plugin 2.20), *TestCase
If your test class doesn't follow these conventions you should rename it or [configure Maven Surefire Plugin][1] to use another pattern for test classes.
Reference : - [maven-does-not-find-junit-tests-to-run][2]
[1]: https://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
[2]: https://stackoverflow.com/questions/6178583/maven-does-not-find-junit-tests-to-run
By default Maven [uses the following naming conventions][3] when looking for tests to run:
* `Test*`
* `*Test`
* `*Tests` ([has been added in Maven Surefire Plugin 2.20][2])
* `*TestCase`
If your test class doesn't follow these conventions you should rename it or [configure Maven Surefire Plugin][1] to use another pattern for test classes.
[1]: https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#includes
[2]: https://issues.apache.org/jira/browse/SUREFIRE-1260
[3]: https://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html