From dac1ff84d659abb316311870a592ea3a183b158c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20N=C3=BCst?= Date: Mon, 25 Jan 2021 11:12:22 +0100 Subject: [PATCH] try to run tests locally (WIP) --- README.md | 19 ++++++++++++++++++- docker-compose.yml | 8 +++----- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f1b746a..a4c3a98 100644 --- a/README.md +++ b/README.md @@ -49,9 +49,26 @@ als Testframework wird **pytest** verwendet * Über Pytest werden Unit- und Integrationtests ausgeführt und ein Coverage-Report zurückgegeben +# Test manuell lokal ausführen +```bash +docker-compose up +``` +Neue Konsole: +```bash +# start a virtual environment, e.g., mkvirtualenv geosoft +pip install -r req.txt - +pytest +``` + +[currently fails with xarray not found] + +Now let's see if the API is up: + +```bash +curl http://localhost:8080/api/va/jobs +``` diff --git a/docker-compose.yml b/docker-compose.yml index 8859fd2..6837ede 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.9" +version: "3.8" services: frontend: image: felixgi1516/geosoft2_frontend:latest @@ -42,8 +42,7 @@ services: environment: - DOCKER=True depends_on: - frontend: - condition: service_started + - frontend # ports: # - 80 volumes: @@ -53,8 +52,7 @@ services: environment: - DOCKER=True depends_on: - frontend: - condition: service_started + - frontend # ports: # - 80 volumes: