Merge pull request #18589 from eileenmcnaughton/ex_class
[civicrm-core.git] / ext / afform / bin / test-all.sh
CommitLineData
f6e9a95d
TO
1#!/bin/bash
2
3## Run all afform-related tests
4##
5## Usage: ./bin/test-all.sh
6
7set -e
8EXIT=0
9
10cv en afform afform_mock
11AFF_CORE=$(cv path -x afform)
12AFF_MOCK=$(cv path -x afform_mock)
13
14pushd "$AFF_CORE" >> /dev/null
15 if ! phpunit6 "$@" ; then
16 EXIT=1
17 fi
18popd >> /dev/null
19
20pushd "$AFF_MOCK" >> /dev/null
f16b2aee
TO
21 if ! phpunit6 --group e2e "$@" ; then
22 EXIT=1
23 fi
24popd >> /dev/null
25
26pushd "$AFF_MOCK" >> /dev/null
27 if ! phpunit6 --group headless "$@" ; then
f6e9a95d
TO
28 EXIT=1
29 fi
30popd >> /dev/null
31
32exit "$EXIT"