Lemonite >Documentation >Starting a Test Project
 

Project initialization

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.

Workspace initialization

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:

 

 

Setting Lemonite classpath

  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:

  • "Add File" button to add an archive to classpath
  • "Add Src Dir." button to add a folder containing class files to classpath
  • "Add Repo." button to add a folder containing several archives to add to classpath (doesn't matter if some archives are stored in sub folders, Lemonite will find them)
  • "Import Eclipse .classpath" contextual menu to add all archives/class folders referenced in an Eclipse ".classpath" file (Lemonite will ask you to browse ".classpath" file)
  • "Import Eclipse workspace dependencies" contextual menu to force Lemonite to read each Eclipse ".classpath" file found in workspace and add each archive/class folder reference found to classpath

Test DB table definition

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.

Test DB initialization

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.

  • Admin user="sa"
  • password=""

 
Dernière mise à jour le 17/07/2009 par Médéric COLLAS