From 05d8c0d73826e816c85e00166f0e62a6d1d924c9 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Sun, 22 Jul 2018 00:15:15 -0700 Subject: [PATCH] Created Testing (markdown) --- Testing.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Testing.md diff --git a/Testing.md b/Testing.md new file mode 100644 index 0000000..ad65564 --- /dev/null +++ b/Testing.md @@ -0,0 +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. + +## Create Docker Databases +The easiest way to run the tests on all 3 databases is by starting temporary databases with Docker. + +```go +docker run -it -d -p 3306:3306 mysql +``` + +```go +docker run -it -d -p 5432:5432 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. + +## Run Tests + +```go +go test -v +``` \ No newline at end of file