Other build tools

The most straightforward way to run specs2 specifications is to use sbt. However other build tools such as Maven and Gradle can be used too (please refer to the Installation guide for instructions on how to set-up projects for those tools).

Maven

With Maven you need to use the Surefire plugin and the test command. (make sure that both the specs2-junit and the org.junit.platform.junit-platform-engine jars on your classpath)

Gradle

With Gradle the test task will run your specification as a JUnit test suite.