From 3d05220f943d5b6fd9a139e88a1cac351874f4a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Berthaud-M=C3=BCller?= Date: Fri, 4 Mar 2022 22:01:57 +0100 Subject: [PATCH] add testing doc --- docs/Testing.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/Testing.md diff --git a/docs/Testing.md b/docs/Testing.md new file mode 100644 index 0000000..9a9e475 --- /dev/null +++ b/docs/Testing.md @@ -0,0 +1,17 @@ +# Testing + +To run the end-to-end tests the OpenAPI Python client should be generated first: +``` +openapi-generator generate -i ./api.yml -g python --package-name nomilo_client -o ./python_client +``` + +Then install, here a virtual env is created for this purpose: +``` +python -m venv env +env/bin/pip install ./python_client +``` + +You are now all set to run the e2e tests, note that Nomilo must be started first: +``` +env/bin/python -m unittest e2e/*.py +``` \ No newline at end of file