Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 1.73 KB

README.md

File metadata and controls

25 lines (22 loc) · 1.73 KB

CiviCRM Web Tests

This repository contains Web Tests for CiviCRM.

Setup

  • Clone the civicrm-webtests repository.
  • Create a CiviCRM testing instance.
    • This testing repository is intended for use with real data, but some tests will need to be altered for variations in the data set.
  • Install Codeception
  • Codeception tests can be run with a local browser (Chrome or Firefox) or headless.
  • Copy the local.tpl.yml template file to local.yml and complete with your testing environment settings. Note that some tests require a database connection.
  • Run all the included tests with
    codecept run
    
    • Run a single Acceptance test, e.g. the Basic Search test, with
      codecept run tests/acceptance/Core/Authenticated/SearchBasicCept.php
      
  • Write more tests and share them!