Changeset 6963 for extensions/jiwigo


Ignore:
Timestamp:
Sep 19, 2010, 3:34:07 PM (14 years ago)
Author:
mlg
Message:

Add unit tests :
New unit tests for the services :

  • CategoryServiceTest that tests the listing of the categories and the creation of a category
  • ServicesTest that tests the listing of the categories, then the listing of images of a category and finally adding a comment to an image.

Add informations in the install.txt file to explain how to build the executable jar file via maven (this allows to execute the tests before building, and does not build if tests fail).

Location:
extensions/jiwigo/trunk
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/install/install.txt

    r6960 r6963  
    2525src/main/java fr.mael.jiwigo.Main
    2626
     27If you want to build an executable jar from the sources, I recommend to use a maven command : create a new "External tool configuration"
     28type "Program" in location put the maven executable in working directory put "${project_loc}" and in argument put "assembly:assembly".
     29Execute the command. The reason to use this command is that it launches the tests of the project and does not build a jar if the
     30tests fail. It creates two jar in the "target" directory of the project : Jiwigo-version.jar and Jiwigo-version-jar-with-dependencies.jar.
     31The first one is not usable because it contains only the class file of the project. The second one can be executed because
     32it contains the dependencies of the project.
     33
    2734Enjoy.
    2835
Note: See TracChangeset for help on using the changeset viewer.