Add comprehensive test coverage for core site features (content, navigation, language, FAQ, news, petition, newsletter) using Pest browser tests and unit tests for custom plugins. Includes test infrastructure (Containerfile.test, compose.test.yaml), test documentation, and test files covering petition form logic, CSV handling, translation, date formatting, rate limiting, and map data building.
24 lines
615 B
YAML
24 lines
615 B
YAML
services:
|
|
app:
|
|
build: .
|
|
container_name: stopplidelsen.test.app
|
|
working_dir: /var/www/html/
|
|
volumes:
|
|
- ./app:/var/www/app:z
|
|
- ./content:/var/www/html:z
|
|
- ./custom:/var/www/custom:z
|
|
command: >
|
|
bash -c "chown -R www-data:www-data /var/www/custom/data /var/www/custom/assets && apache2-foreground"
|
|
|
|
test:
|
|
build:
|
|
context: .
|
|
dockerfile: Containerfile.test
|
|
container_name: stopplidelsen.test.runner
|
|
volumes:
|
|
- ./tests:/app/tests:z
|
|
- ./custom:/app/custom:z
|
|
depends_on:
|
|
- app
|
|
environment:
|
|
APP_URL: http://app.dns.podman
|