Logo

Squaretest

Auto generate the boilerplate code required for your Java unit tests

The Squaretest plugin for IntelliJ IDEA allows you to automatically generate the boilerplate code required for your Java unit tests. GENERATE A TEST CLASS FOR YOUR JAVA CLASS WITH ONE ACTION Use the configurable keyboard shortcut to generate a test-class in either Java (1.7+) or Groovy. THE GENERATED TEST-CLASS CONTAINS APPROPRIATE BOILERPLATE CODE Squaretest automatically generates the following based on your source-class. - Code to construct the instance of the source-class and initialize its dependencies, in many cases - A test-method for each public and package-local method in the source-class. CUSTOMIZE TEST-CLASS GENERATION WITH A VELOCITY TEMPLATE You can configure how the test-classes are generated by creating your own Apache Velocity template. SUPPORTS COMMON TEST-FRAMEWORKS Squaretest includes default Velocity templates for both Java and Groovy for the following test-frameworks. - JUnit4 - JUnit5 - Robolectric3 - AndroidJUnit4

Explore By Topic