diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b3f3e1..b48fcb0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,3 +20,5 @@ jobs: run: sbt test assembly - name: Run linter run: sbt "scalafixAll --check" + - name: Run locust tests + run: ./tests/run.sh diff --git a/.gitignore b/.gitignore index 822b674..bb826aa 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,9 @@ .metals .vscode +# for python test env +/testEnv/ + # for various captcha /known/ /unknown/ diff --git a/tests/run.sh b/tests/run.sh new file mode 100755 index 0000000..f216b78 --- /dev/null +++ b/tests/run.sh @@ -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