run locust tests in CI
This commit is contained in:
parent
72f092e6b5
commit
6ea5691c5e
|
@ -20,3 +20,5 @@ jobs:
|
|||
run: sbt test assembly
|
||||
- name: Run linter
|
||||
run: sbt "scalafixAll --check"
|
||||
- name: Run locust tests
|
||||
run: ./tests/run.sh
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
.metals
|
||||
.vscode
|
||||
|
||||
# for python test env
|
||||
/testEnv/
|
||||
|
||||
# for various captcha
|
||||
/known/
|
||||
/unknown/
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue