diff --git a/Testing.md b/Testing.md index ad65564..bd1be7c 100644 --- a/Testing.md +++ b/Testing.md @@ -1,14 +1,20 @@ -If you want to test your updates with the current golang testing units, you can follow the guide below to run a full test process. +If you want to test your updates with the current golang testing units, you can follow the guide below to run a full test process. Each test for Statup will run in MySQL, Postgres, and SQlite to make sure all database types work correctly ## Create Docker Databases -The easiest way to run the tests on all 3 databases is by starting temporary databases with Docker. +The easiest way to run the tests on all 3 databases is by starting temporary databases servers with Docker. ```go -docker run -it -d -p 3306:3306 mysql +docker run -it -d \ + -p 3306:3306 \ + -env MYSQL_ROOT_PASSWORD=password123 \ + -env MYSQL_DATABASE=root mysql ``` ```go -docker run -it -d -p 5432:5432 postgres +docker run -it -d -p 5432:5432 \ + -env POSTGRES_PASSWORD=password123 \ + -env POSTGRES_USER=root \ + -env POSTGRES_DB=root postgres ``` Once you have MySQL and Postgres running, you can begin the testing. SQLite database will create a `statup.db` file and will delete after testing.