Skip to content

Commit

Permalink
add docker-compose command to developer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjperrone committed Jan 25, 2024
1 parent b08bf51 commit 152d1c7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ These tests require internet access because they download the spec from Recap's

Recap has integration tests that validate some of Recap's readers against real systems. These tests are located in the `tests/integration` directory.

These tests require a postgres and mysql database to be running to work. To spin them up, you can use docker-compose:

docker-compose --project-directory tests/ up

Run the integration tests:

pdm run integration
RECAP_URLS='["postgresql://postgres:password@localhost:5432/testdb"]' pdm run integration

These test require various systems to be running as defined in the .github/workflows/ci.yml file.

Expand Down
25 changes: 25 additions & 0 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '3.9'

services:
postgres:
container_name: recap_postgres_test
image: postgres:14
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: testdb
ports:
- "5432:5432"

mysql:
image: mysql:8.0
container_name: recap_mysql_test
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: testdb
MYSQL_USER: mysql
MYSQL_PASSWORD: password
ports:
- "3306:3306"

0 comments on commit 152d1c7

Please sign in to comment.