Running your tapir Tests
tapir tests can be executed as JUnit tests. Therefore it’s possible just to perform Run As -> JUnit Test in Eclipse to start the test. For this to work you need to include the JUnit modules for tapir.
<dependency> <groupId>de.bmiag.tapir</groupId> <artifactId>tapir-junit</artifactId> </dependency> <dependency> <groupId>de.bmiag.tapir</groupId> <artifactId>tapir-junit-execution</artifactId> </dependency>
You can also run the test suite or class from the commandline:
> java de.bmiag.example.MyTestClass
tapir provides a dedicated cli module which can be used to run test suites or classes. Currently this module does not provide any advantages compared to the way introduced in the last chapter, but later on you might be able to provide some custom properties which influence the execution.
<dependency> <groupId>de.bmiag.tapir</groupId> <artifactId>tapir-cli</artifactId> </dependency>
The TapirLauncher contains a main method, which means you can start it via the command line. The class to be executed is given as parameter.
> java de.bmiag.tapir.cli.TapirLauncher de.bmiag.example.MyTestClass