Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:2.1:contribute [2019/06/05 23:36]
arosier [Install basic tools]
documentation:2.1:contribute [2019/08/17 20:58] (current)
xguimard [Working Project]
Line 23: Line 23:
 //root :// //root ://
   apt install aptitude   apt install aptitude
-  aptitude install vim make devscripts yui-compressor git git-gui libjs-uglify coffeescript cpanminus+  aptitude install vim make devscripts yui-compressor git git-gui libjs-uglify coffeescript cpanminus ​autopkgtest pkg-perl-autopkgtest
   aptitude install libauth-yubikey-webclient-perl libnet-smtp-server-perl   aptitude install libauth-yubikey-webclient-perl libnet-smtp-server-perl
   ​   ​
Line 90: Line 90:
 ===== Working Project ​ ===== ===== Working Project ​ =====
  
 +  ## Launch unit tests:
   make test # or manager_test,​ portal_test,​ ... to launch unit tests   make test # or manager_test,​ portal_test,​ ... to launch unit tests
 +  ## Same tests launched on a simulated install
 +  make autopkgtest # or autopkg_portal,​ autopkg_manager,​ ... to launch unit tests
 +  ​
 +  ## Execute an unit test :
 +  # Building project
 +  cd ~/​lemonldap-ng/;​ make
 +  # Go to parent test directory
 +  cd ~/​lemonldap-ng/​lemonldap-ng-portal
 +  # and execute the unit test:
 +  prove -v t/​67-CheckUser.t
 +  ​
 +  ## Using local platform :
   make start_web_server # TESTUSESSL=1 to enable SSL engine (only available for Apache)   make start_web_server # TESTUSESSL=1 to enable SSL engine (only available for Apache)
   make start_web_server TESTWEBSERVER=nginx # to use Nginx web server   make start_web_server TESTWEBSERVER=nginx # to use Nginx web server
Line 100: Line 113:
   make manifest # to update manifest   make manifest # to update manifest
   make tidy # to magnify perl files (perl best pratices)   make tidy # to magnify perl files (perl best pratices)
-  cd lemonldap-ng-portal && prove t/XXXX # To launch specific unit test