Skip to content

Commit 939b0e2

Browse files
committed
try mimick sergiomor/drupal_module_test_github_actions
1 parent c882b63 commit 939b0e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/sut-tests.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test_filter=${1:-'all'}
1616
dcg_drupal_host=${DCG_DRUPAL_HOST:-'127.0.0.1'}
1717
dcg_drupal_port=${DCG_DRUPAL_PORT:-'8085'}
1818
dcg=$drupal_dir/vendor/bin/dcg
19-
dcg_wd_url=${DCG_WD_URL:-'http://localhost:4444/wd/hub'}
19+
dcg_wd_url=${DCG_WD_URL:-'http://localhost:4444'}
2020
dcg_drupal_version=${DCG_DRUPAL_VERSION:-'11.x'}
2121
drupal_repo='https://git.drupalcode.org/project/drupal.git'
2222

@@ -63,7 +63,8 @@ function dcg_phpcs {
6363
function dcg_phpunit {
6464
SIMPLETEST_BASE_URL=http://$dcg_drupal_host:$dcg_drupal_port \
6565
SIMPLETEST_DB=sqlite://localhost//$drupal_dir/sites/default/files/dcg_test.sqlite \
66-
MINK_DRIVER_ARGS='["chrome", {"goog": {"w3c": false, "args": ["--headless"]}}, "'$dcg_wd_url'"]' \
66+
BROWSERTEST_SELENIUM_URL=$dcg_wd_url \
67+
MINK_DRIVER_ARGS_WEBDRIVER='["chrome", {"goog": {"browserName": "chrome", "platformName": "LINUX", "goog:chromeOptions": {"args": ["--disable-gpu", "--headless", "--no-sandbox", "--disable-dev-shm-usage"]}}, "'$dcg_wd_url'"]' \
6768
$drupal_dir/vendor/bin/phpunit -c $drupal_dir/core "$@"
6869
}
6970

0 commit comments

Comments
 (0)