Once Lemonite is started, instanciate a new Lemonite Project by loading the "NEW_PROJECT.zip"project template. To do this, use menu "Lemonite/Load Test Project ...":
Once Lemonite is started, instanciate a new Lemonite Project by loading the "NEW_PROJECT.zip"project template. To do this, use menu "Lemonite/Load Test Project ...":
Wait for the project template installation to complete. Once completed, click OK button.
Next step consists in defining where to find classes to test. This step is not necessary if Lemonite is running as Eclipse plugin. To do so, use menu "Settings/General" and go to "Repositories" index.
Use "Browse" button to define workspace root in "Workspace" Text. Once workspace root is defined, use "Add" button to add directory/jar/zip files containing classes to test:
Lemonite classpath must contain all class folders/archives needed to introspect classes availables in workspace repositories. To configure it, use following menu:
In displayed window, use:
Lemonite Test database contains a table for each class used at least one time to type a parameter in a tested method signature.
When a tested method has a strongly-typed signature, Lemonite determines used types by introspecting this method and automatically creates, if not exists, for each type, the corresponding table in database.
Sometimes, when, for example, a method references in its signature an interface and not a class, it's necessary to manually declare each class that implements this interface (because this class can be used to type the interface typed parameter(s) when creating a test for this method) in test database.
To declare such types in database, use menu "Settings/DB" to display table configuration window:
In left tree, browse each class for which a table must be manually added in Lemonite database, and use "Add" button to add corresponding table definition to right tree.
To delete a table definition in right tree, use "Remove" button.
Once this step completed, save table configuration by clicking on "OK" button.
To update Lemonite test database and create each table specified in previous steps, use menu "Test DB/(Re)Build DB":
Admin DB user/password will be necessary.