Running the tests

After the tests are written, it is useful to run them in order to see whether everything works as expected. If you're using Maven, just run the following command from the root of your project and it will execute all the tests:

mvn clean test

If you're using SBT, then the tests can be triggered using the following command:

sbt test

Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.