P
P
parkito2016-09-11 15:52:35
Java
parkito, 2016-09-11 15:52:35

Why can't maven see tests?

Hello. Help, please, to solve a problem. I am writing an application, I wrote JUnit tests for it. I named them like Title1Test, Title2Test, added them to the test directory, indicated this to maven

<testSourceDirectory>/src/tests</testSourceDirectory>

However, maven still does not see them and does not raise them.
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
What am I doing wrong in order for maven to execute these tests?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2016-09-11
@fornit1917

Did you forget the @Test annotation?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question