From 8038a95b60783bbb87b71ae26e7b43da7e27954a Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Wed, 12 Jul 2023 00:28:35 +0200 Subject: [PATCH] Add README for tests --- tests/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/README.md diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 0000000..3616a7c --- /dev/null +++ b/tests/README.md @@ -0,0 +1,18 @@ +# PostgSail Unit Tests +The Unit Tests allow to automatically validate the workflow. + +## A global overview +Based on `mocha` & `psql` + +## get started +```bash +$ npm i +$ alias mocha="./node_modules/mocha/bin/_mocha" +$ bash tests.sh +``` + +## docker +```bash +$ docker-compose up -d db && sleep 15 && docker-compose up -d api && sleep 5 +$ docker-compose -f docker-compose.dev.yml -f docker-compose.yml up tests +``` \ No newline at end of file