Skip to content

Commit

Permalink
Additional changes to break up testing requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
portante committed Oct 14, 2020
1 parent 80c4b7e commit 3526a76
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 21 deletions.
1 change: 0 additions & 1 deletion agent/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ bottle
cffi
click
colorlog
humanize
python-daemon
python-pidfile
redis
Expand Down
2 changes: 2 additions & 0 deletions agent/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest>=4.6.3, < 5
responses
2 changes: 2 additions & 0 deletions lint-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
black==19.10b0
flake8==3.8.3
1 change: 1 addition & 0 deletions server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ flask-restful
gunicorn
humanize
pyesbulk
requests
1 change: 1 addition & 0 deletions server/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest>=4.6.3, < 5
8 changes: 0 additions & 8 deletions test-requirements.txt

This file was deleted.

24 changes: 12 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV = {envdir}
deps =
-r{toxinidir}/test-requirements.txt
commands_pre =
{toxinidir}/detox {envdir}
envars =
Expand All @@ -38,65 +36,69 @@ description = Runs all non-Python3-based server unit/functional tests
passenv = PBENCH_UNITTEST_SERVER_MODE
deps =
-r{toxinidir}/server/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/server/test-requirements.txt
commands =
bash -c "./server/bin/unittests {posargs}"

[testenv:datalog]
description = Runs all non-Python3-based agent tool-scripts/datalog unit/functional tests
deps =
-r{toxinidir}/agent/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/agent/test-requirements.txt
commands =
bash -c "./agent/tool-scripts/datalog/unittests {posargs}"

[testenv:postprocess]
description = Runs all non-Python3-based agent tool-scripts/postprocess unit/functional tests
deps =
-r{toxinidir}/agent/test-requirements.txt
commands =
bash -c "./agent/tool-scripts/postprocess/unittests {posargs}"

[testenv:tool-scripts]
description = Runs all non-Python3-based agent tool-scripts unit/functional tests
deps =
-r{toxinidir}/agent/test-requirements.txt
commands =
bash -c "./agent/tool-scripts/unittests {posargs}"

[testenv:util-scripts]
description = Runs all non-Python3-based agent util-scripts unit/functional tests
deps =
-r{toxinidir}/agent/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/agent/test-requirements.txt
commands =
bash -c "./agent/util-scripts/unittests {posargs}"

[testenv:bench-scripts]
description = Runs all non-Python3-based agent bench-scripts unit/functional tests
deps =
-r{toxinidir}/agent/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/agent/test-requirements.txt
commands =
bash -c "./agent/bench-scripts/unittests {posargs}"

[testenv:py3-server]
description = Runs all Python3-based server unit tests
deps =
-r{toxinidir}/server/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/server/test-requirements.txt
commands =
pytest ./lib/pbench/test/unit/server

[testenv:py3-agent]
description = Runs all Python3-based agent unit tests
deps =
-r{toxinidir}/agent/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/agent/test-requirements.txt
commands =
pytest ./lib/pbench/test/unit/agent

[testenv:py3-functional]
description = Runs all Python3-based functional tests
deps =
-r{toxinidir}/server/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/server/test-requirements.txt
commands =
pytest ./lib/pbench/test/functional

Expand All @@ -105,8 +107,6 @@ description = Runs all linting tasks
commands =
black --check .
flake8 .
deps =
black==19.10b0
flake8==3.8.3
deps = -r{toxinidir}/lint-requirements.txt
skip_install = true
usedevelop = false

0 comments on commit 3526a76

Please sign in to comment.