Skip to content

Commit 17abc60

Browse files
committed
Limit test duration to 5mins w/ pytest-timeout
1 parent 5a09dab commit 17abc60

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ lint:
2121
pylint --recursive=y --errors-only kafka test
2222

2323
test: build-integration
24-
pytest --durations=10 $(PYTESTS)
24+
pytest $(PYTESTS)
2525

2626
cov-local: build-integration
2727
pytest --pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka \

pytest.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[pytest]
22
log_format = %(created)f %(filename)-23s %(threadName)s %(message)s
33
log_level = DEBUG
4+
addopts = --durations=10 --timeout=300

requirements-dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pytest
1010
pytest-cov
1111
pytest-mock
1212
pytest-pylint
13+
pytest-timeout
1314
python-snappy
1415
Sphinx
1516
sphinx-rtd-theme

0 commit comments

Comments
 (0)