From 4d45992b841665acd3ac9560ef9db92aee088d7d Mon Sep 17 00:00:00 2001 From: landrigun Date: Wed, 21 Sep 2022 09:56:30 +0100 Subject: [PATCH] update README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index e2e0d99..08994f9 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,28 @@ cargo build --release ## Test +### unit tests ```bash cargo test ``` + +### integration tests +* run the server locally or remotly (the URL must be changed if needed in `curling.bash` and `test_requests.py`) +* run curl tests +```bash +cd tests/bash/ +./curling.bash && echo "passed" +``` +* run python requests tests +```bash +# create a python venv +cd tests/python +python3 -m venv venv +source venv/bin/activate + +# intall the requirements +pip install -r requirements + +# launch the tests +python -m unitest +```