mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-26 12:33:13 -05:00
run locust tests in CI
This commit is contained in:
parent
72f092e6b5
commit
6ea5691c5e
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -20,3 +20,5 @@ jobs:
|
||||
run: sbt test assembly
|
||||
- name: Run linter
|
||||
run: sbt "scalafixAll --check"
|
||||
- name: Run locust tests
|
||||
run: ./tests/run.sh
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,6 +9,9 @@
|
||||
.metals
|
||||
.vscode
|
||||
|
||||
# for python test env
|
||||
/testEnv/
|
||||
|
||||
# for various captcha
|
||||
/known/
|
||||
/unknown/
|
||||
|
10
tests/run.sh
Executable file
10
tests/run.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user