Initial commit
This commit is contained in:
39
templates/docker/codeception.yml
Normal file
39
templates/docker/codeception.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
paths:
|
||||
tests: Tests/Acceptance
|
||||
output: var/log/acceptance
|
||||
data: Tests/Acceptance/_data
|
||||
support: Tests/Acceptance/_support
|
||||
envs: Tests/Acceptance/_envs
|
||||
|
||||
actor_suffix: Tester
|
||||
|
||||
extensions:
|
||||
enabled:
|
||||
- Codeception\Extension\RunFailed
|
||||
|
||||
suites:
|
||||
acceptance:
|
||||
actor: AcceptanceTester
|
||||
path: .
|
||||
modules:
|
||||
enabled:
|
||||
- WebDriver:
|
||||
url: http://web:8000
|
||||
browser: chrome
|
||||
host: selenium
|
||||
port: 4444
|
||||
wait: 2
|
||||
window_size: 1920x1080
|
||||
capabilities:
|
||||
chromeOptions:
|
||||
args: ["--no-sandbox", "--disable-dev-shm-usage"]
|
||||
- \\Helper\\Acceptance
|
||||
config:
|
||||
WebDriver:
|
||||
browser: '%BROWSER%'
|
||||
|
||||
settings:
|
||||
shuffle: false
|
||||
lint: true
|
||||
colors: true
|
||||
memory_limit: 1024M
|
||||
51
templates/docker/docker-compose.yml
Normal file
51
templates/docker/docker-compose.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
services:
|
||||
web:
|
||||
image: php:8.4-apache
|
||||
container_name: typo3-test-web
|
||||
volumes:
|
||||
- ../../../:/var/www/html
|
||||
ports:
|
||||
- "8000:80"
|
||||
environment:
|
||||
- TYPO3_CONTEXT=Testing
|
||||
- typo3DatabaseDriver=mysqli
|
||||
- typo3DatabaseHost=db
|
||||
- typo3DatabaseName=typo3_test
|
||||
- typo3DatabaseUsername=typo3
|
||||
- typo3DatabasePassword=typo3
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- typo3-test
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: typo3-test-db
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: typo3_test
|
||||
MYSQL_USER: typo3
|
||||
MYSQL_PASSWORD: typo3
|
||||
ports:
|
||||
- "3306:3306"
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- typo3-test
|
||||
|
||||
selenium:
|
||||
image: selenium/standalone-chrome:latest
|
||||
container_name: typo3-test-selenium
|
||||
ports:
|
||||
- "4444:4444"
|
||||
shm_size: 2gb
|
||||
networks:
|
||||
- typo3-test
|
||||
|
||||
networks:
|
||||
typo3-test:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user