If your naming convention differs from this default you have toĮnter your naming rule here. HelloWorld then the test case should be named HelloWorldTest. If the source folder for your preferences is not named " test" you have to enter the name of your test source folder (for instance:īy default MoreUnit expects your test cases to be named with the suffix "Test". Step 3: Enter your preferences a) General preferencesīefore you can start you have to configure some preferences. > General > Appearance > Label Decorations and activate Decorate Classes with Step 2: Activate Decoration of classesĬhoose Eclipse|Window > Preferences.
First configuration Step 1: Install MoreUnit Plugin with great features which are far beyond the basic support. To configure settings for Java or Groovy, you should not use the basic version of MoreUnit. Is a button labelled Delete Configuration at the beginning of the preference page: To delete a language specific configuration you created, take a look at the preference page for this language. If you click the Create Configuration button, a new preference page will show up on Ruby) which will be used to label the new preference page,Īnd a file extension (e.g. To create a new preference page enter a language name (e.g. If you work with different languages it could be necessary to configure settings for each language. If you click on the link Test, examples of your pattern will show up in the yellow fields. To get some help with the configuration take a look at the demonstration area where you can test your pattern.
FirstSecondThirdWord) nothing needs to be configured here. foo_bar) this can be configured here as well to help MoreUnit finding your MyFile.java are: MyFileSimpleTest.java, MyFileComplexDbTest.java). With Test or DbTest, and the star is a wildcard. Tests, the property should be set to $*(Test/DbTest). if your save your tests in a folder called The configuration for corresponding test path is similar. Your sources in a folder called src within your project then the source path should look like: The source path is the place where your project sources are saved. In the preferences/properties navigate to MoreUnit > User Languages and the following UI will show up: Rule for locating test files Last but not least these settings can be done global (in the preferences) or Get applied to all languages (described in the next section) and you can specifiy settings for any specific language That means you can configure basic settings which With version 3.0.X we have added basic support for all languages. In theĪdd repository screen choose your downloaded archive. On the upcoming dialog click on the Add-Button.
Option C: Download the archiveĪfter that open Help > Install New Software. You can now select the plugin(s) you want to install from MoreUnit update site and proceed. Click on Add., then enter the following URL and validate: Option B: Add MoreUnit's update site manually It will add MoreUnit update site to your settings and install the plugin altogether. Then search for MoreUnit, and click on the "Install"īutton displayed on the result. If you have Eclipse Marketplace installed, open it from Eclipse's Help menu. Otherwise MoreUnit Light will still help you a lot! Option A: Use Eclipse Marketplace
If you code in Java or Groovy, you definitely should install MoreUnit For Java, as it brings many code edition and Pix 1: Class decoration Pix 2: Marker decoration Pix 3: Menu Documentation MoreUnit Install Which version should I install?
Overview of the features it provides, for further information take a look at the documentation section. MoreUnit is an Eclipse plugin (licensed under EPL) that should assist you in writing more unit tests, mainly targeted at the Java language. Searching for MoreUnit for IntelliJ and friends? Here it is!