Skip to content

Commit 242d91e

Browse files
bringhurstStephenSorriaux
authored andcommitted
chore(test): add a 3min timeout to each individual tests and enable color output
1 parent a875342 commit 242d91e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

constraints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ flake8==5.0.2
55
objgraph==3.5.0
66
pytest==6.2.5
77
pytest-cov==3.0.0
8+
pytest-timeout==2.2.0

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ extend-exclude = '''
2020
'''
2121

2222
[tool.pytest.ini_options]
23-
addopts = "-ra -v"
23+
addopts = "-ra -v --color=yes"
2424
log_cli = true
2525
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
2626
log_cli_format = "%(asctime)s %(levelname)s %(message)s"
2727
log_cli_level = "INFO"
28+
# Per-test timeout in seconds
29+
timeout = 180
2830

2931
[tool.mypy]
3032

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ test =
5858
objgraph
5959
pytest
6060
pytest-cov
61+
pytest-timeout
6162
gevent>=1.2 ; implementation_name!='pypy'
6263
eventlet>=0.17.1 ; implementation_name!='pypy'
6364
pyjks

0 commit comments

Comments
 (0)