Skip to content

Commit

Permalink
fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Jan 29, 2022
1 parent ef907eb commit 0938e08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@ deps =
black
pylint
pytest
allowlist_externals =
bash
timeout
grep
commands =
pylint --rcfile .pylintrc locust_plugins/
python -c 'from glob import glob; import subprocess; subprocess.check_call(["pylint", "--rcfile", ".pylintrc"] + glob("examples/*.py"))'
pytest
black --check locust_plugins/
bash -ec "python3 examples/rest_ex.py | grep 'my custom error message with response text, response was {\"args\"'"
bash -ec "PYTHONUNBUFFERED=1 timeout 5s python3 examples/rest_ex.py > output.txt || true"
grep -m 1 'my custom error message with response text, response was {"args"' output.txt
locust -f examples/jmeter_listener_example.py --headless -t 1
locust-compose up -d
/bin/sleep 10
bash -ec "locust -f examples/rest_ex.py --timescale --headless -t 1 -s 60 --exit-code-on-error 0 2>&1 | grep 'Report: http://localhost:3000/d/qjIIww4Zz?&var-testplan=examples/rest_ex.py&from='"
bash -ec "locust -f examples/rest_ex.py --timescale --headless -t 2 -s 60 --exit-code-on-error 0 2>&1 | grep 'Report: http://localhost:3000/d/qjIIww4Zz?&var-testplan=examples/rest_ex.py&from='"
; check that main dashboard exists
curl --fail 'http://localhost:3000/api/dashboards/uid/qjIIww4Zz'
; run this if you want to ensure a clean slate
Expand Down

0 comments on commit 0938e08

Please sign in to comment.