Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Added skeleton for stress testing #30

Merged
merged 1 commit into from
May 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ omit =
setup.py
# Don't complain if non-runnable code isn't run
*/__main__.py
tests/stress/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird tabbing?


[report]
exclude_lines =
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ $(VENV)/bin/activate: requirements-dev.txt requirements-test.txt
test: $(VENV)
$(ACTIVATE); tox $(REBUILD_FLAG)

.PHONY: stress-test
stress-test: $(VENV)
$(ACTIVATE); INPUT=$(INPUT) tox -c tox-stress.ini $(REBUILD_FLAG)

dist/*.whl: setup.py rawkit/*.py
python setup.py bdist_wheel

Expand Down
Empty file added tests/stress/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions tests/stress/stress_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os


def test_stress():
INPUT = os.environ['INPUT']
assert INPUT is not '', 'Must specify INPUT directory.'
11 changes: 11 additions & 0 deletions tox-stress.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[tox]
project = rawkit
# Keep up to date with the .travis.yml list
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy pasted comment doesn't actually mean anything here?

envlist = py34

[testenv]
passenv = INPUT
deps =
-rrequirements-test.txt
commands =
py.test tests/stress
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ deps =
-rrequirements-test.txt
commands =
coverage erase
coverage run -m pytest tests
coverage run -m pytest tests -k "not stress"
coverage report --show-missing
flake8 {[tox]project} tests setup.py