Created
May 2, 2018 19:15
-
-
Save agentrickard/83c94fcdf1c51636f4b64fc8b8d24e7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# be in the right directory | |
cd /Applications/MAMP/htdocs/domain8/core/scripts | |
tests=$1 | |
class=$2 | |
# pass any second var to disable verbosity | |
# run dt --clean to clean up | |
# run a specific class with dt domain Drupal\\domain\\Tests\\DomainInactiveTest | |
# dt node Drupal\\Tests\\node\\Functional\\NodeAccessLanguageFallbackTest | |
# dt domain_access Drupal\\domain_access\\Tests\\DomainAccessPermissionsTest | |
# dt domain_source Drupal\\Tests\\domain_source\\Functional\\DomainSourceElementTest | |
# dt domain_config Drupal\\Tests\\domain_config\\Functional\\DomainConfigAlterHookTest | |
# dt domain_alias Drupal\\Tests\\domain_access\\Functional\\DomainAccessPermissionsTest | |
# dt domain_alias Drupal\\Tests\\domain_access\\Functional\\DomainAccessPermissionsTest | |
# dt domain Drupal\\Tests\\domain\\Functional\\DomainCheckResponseTest | |
# ../vendor/bin/phpunit --group domain | |
v='--verbose --browser --color' | |
if [ $class ] | |
then | |
v='--verbose --browser --color --class' | |
php run-tests.sh $v --url http://example.com $class | |
else | |
if [ ! "$tests" ] | |
then | |
php run-tests.sh $v --url http://example.com domain | |
php run-tests.sh $v --url http://example.com domain_access | |
php run-tests.sh $v --url http://example.com domain_alias | |
php run-tests.sh $v --url http://example.com domain_config | |
php run-tests.sh $v --url http://example.com domain_content | |
php run-tests.sh $v --url http://example.com domain_source | |
else | |
php run-tests.sh $v --url http://example.com $tests $class | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment