DEV Community


Discussion on: Introduction to Unit Testing with Java

khmarbaise profile image
Karl Heinz Marbaise

Hi, just a small hint. In case you add a dependency in Maven which is only intended for testing, which TestNG is, you should do it like this:


Apart from that if suggest to name a test class * you have add an example to use the most recent versions of maven-surefire-plugin (2.21.0+). Otherwise this will not being executed as test. The best it to name it * this will work with older versions well..

chrisvasqm profile image
Christian Vasquez Author

Thank you, Karl!

That's really helpful 😄