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:latest:contribute [2019/07/02 20:04]
maxbes perltidy instructions
documentation:latest:contribute [2019/08/17 20:58] (current)
Line 30: Line 30:
 //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 93: Line 93:
 ===== 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
-  # Doing one unit test : +  ## Same tests launched on a simulated install 
-  ## Go to parent test directory+  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   cd ~/​lemonldap-ng/​lemonldap-ng-portal
-  ​## and execute the test :+  # and execute the unit test:
   prove -v t/​67-CheckUser.t   prove -v t/​67-CheckUser.t
-  # Using local platform :+  ​ 
 +  ## 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 109: Line 116:
   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