Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ To mirror the CI environment on your machine:
docker compose -f docker-compose-test.yml up -d
```

3. **Run the suites:**
* **PHPUnit:** `docker exec -it opencats_test_php ./vendor/bin/phpunit src/OpenCATS/Tests/IntegrationTests`
3. **Install PHP dependencies (Composer):**
```bash
docker run --rm -v "$(pwd)/..":/app -w /app composer:2 composer install --no-interaction --prefer-dist --ignore-platform-reqs
```

4. **Run the suites:**
* **PHPUnit Unit Tests:** `docker exec -it opencats_test_php ./vendor/bin/phpunit src/OpenCATS/Tests/UnitTests`
* **PHPUnit Integration Tests:** `docker exec -it opencats_test_php ./vendor/bin/phpunit src/OpenCATS/Tests/IntegrationTests`
* **Behat:** `docker exec -it opencats_test_php ./vendor/bin/behat -c ./test/behat.yml`

---
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
php:
container_name: opencats_test_php
image: opencats/php-base:7.2-fpm-alpine
working_dir: /var/www/public
volumes_from:
- opencatsdata

Expand Down
Loading