Project

General

Profile

Debugging CiviCRM cheatsheet » History » Version 1

Jon Goldberg, 09/26/2017 03:52 PM

1 1 Jon Goldberg
# Debugging CiviCRM cheatsheet
2
3
### Command-line runs of PHPUnit:
4
5
From a buildkit civiroot, run a specific file's tests::
6
7
~~~ text
8
CIVICRM_UF=UnitTests phpunit4 tests/phpunit/CRM/Core/BAO/AddressTest.php
9
~~~
10
11
You can also limit to a single test by filtering on name:
12
13
~~~ text
14
CIVICRM_UF=UnitTests phpunit4 tests/phpunit/CRM/Core/BAO/AddressTest.php --filter testShared
15
~~~