Skip to content

Commit

Permalink
Merge pull request #219 from palantirnet/DEV-33-behat-php
Browse files Browse the repository at this point in the history
Setup behat tests to use the drupal router
  • Loading branch information
byrond authored Jun 23, 2023
2 parents ea260fb + 4472b99 commit 4a7927e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ jobs:
- run:
name: Run Behat tests
command: |
nohup php -S example.ddev.site:8000 -t $(pwd)/${DRUPAL_ROOT}/ > /tmp/artifacts/phpd.log 2>&1 &
cd ${DRUPAL_ROOT}
nohup php -S example.ddev.site:8000 .ht.router.php > /tmp/artifacts/phpd.log 2>&1 &
google-chrome --headless --remote-debugging-port=9222 &>/dev/null &
cd ..
vendor/bin/phing test -Dbuild.env=circleci
working_directory: ~/example

Expand Down
4 changes: 3 additions & 1 deletion defaults/install/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ jobs:
- run:
name: Run Behat tests
command: |
nohup php -S ${CIRCLE_PROJECT_REPONAME}.local:8000 -t $(pwd)/${DRUPAL_ROOT}/ > /tmp/artifacts/phpd.log 2>&1 &
cd ${DRUPAL_ROOT}
nohup php -S ${CIRCLE_PROJECT_REPONAME}.local:8000 .ht.router.php > /tmp/artifacts/phpd.log 2>&1 &
google-chrome --headless --remote-debugging-port=9222 &>/dev/null &
cd ..
vendor/bin/phing test
- store_artifacts:
Expand Down

0 comments on commit 4a7927e

Please sign in to comment.