Skip to content

Commit

Permalink
[TASK] run codeception local in chrome browser
Browse files Browse the repository at this point in the history
  • Loading branch information
achimfritz committed Oct 30, 2024
1 parent 168dbd9 commit 2782451
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 38 deletions.
17 changes: 0 additions & 17 deletions Tests/Acceptance/_envs/local-headless.yml

This file was deleted.

17 changes: 0 additions & 17 deletions Tests/Acceptance/_envs/local.yml

This file was deleted.

6 changes: 2 additions & 4 deletions Tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@
.Build/bin/typo3 extension:setup
# run php webserver and chromedriver
php -S 0.0.0.0:8888 -t .Build/Web/ &
chromedriver --url-base=/wd/hub &
chromedriver --url-base=/wd/hub --port=9515 &
# create database with "_at" postfix
mysql -e 'CREATE DATABASE IF NOT EXISTS foox_at;'

adapt Tests/Acceptance/_envs/local.yml and/or .env if required

## Run tests


.Build/bin/phpunit -c Build/phpunit/UnitTests.xml Tests/Unit/
.Build/bin/phpunit -c Build/phpunit/FunctionalTests.xml Tests/Functional
.Build/bin/codecept run Backend --env=local -c Tests/codeception.yml
.Build/bin/codecept run Backend --env=local,classic -c Tests/codeception.yml
9 changes: 9 additions & 0 deletions Tests/codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ env:
# capabilities:
# goog:chromeOptions:
# args: ["headless", "no-sandbox", "disable-gpu"]
local:
modules:
config:
WebDriver:
path: /wd/hub
url: 'http://0.0.0.0:8888/'
capabilities:
goog:chromeOptions:
args: ["no-sandbox", "disable-gpu"]
params:
- parameters.yml
- env

0 comments on commit 2782451

Please sign in to comment.