Changes between Version 1 and Version 2 of CiviCRM HowTo Run Tests


Ignore:
Timestamp:
11/13/13 13:59:56 (11 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CiviCRM HowTo Run Tests

    v1 v2  
    22
    33Summary and expansion of the procedure outlined in the CiviCRM page [[http://wiki.civicrm.org/confluence/display/CRM/Setting+up+your+personal+testing+sandbox+HOWTO|Settings up your personal testing sandbox]].
     4
     5== Gitify a project
     6
     7The tests and test tools are not in the release package of CiviCRM, so you have to ''gitify'' the code - that is, convert it into a git repository and get the latest version of the code from Git Hub.
     8
     9I have had a couple of problems with this:
     10
     111. The {{{gitify}}} script gives you no options but to use the Master branch.
     121. The {{{gitify}}} script gives you an example that does not work.
     131. Still, some of the tests fail.
     14
     15Nevertheless, the procedure to do this is:
     16
     171. {{{sudo apt-get install git}}} (if it is not already installed)
     181. {{{wget https://github.com/civicrm/civicrm-core/raw/master/bin/gitify}}}
     191. {{{bash gitify git://github.com/civicrm <path to civicrm> --hooks}}}.  e.g. {{{bash gitify git://github.com/civicrm /var/www/sites/all/modules/civicrm/ --hooks}}}
     20
     21== Set up test database
    422
    5231. Create DB {{{civicrm_tests_dev}}}