run locust tests in CI

This commit is contained in:
hrj
2021-04-02 15:42:47 +05:30
parent 72f092e6b5
commit 6ea5691c5e
3 changed files with 15 additions and 0 deletions

10
tests/run.sh Executable file
View File

@@ -0,0 +1,10 @@
python3 -m venv testEnv
source ./testEnv/activate
pip install locust
java -jar target/scala-2.13/LibreCaptcha.jar &
JAVA_PID=$!
sleep 4
locust -f tests/locustfile.py
kill $JAVA_PID