Skip to content

Commit

Permalink
chore(test): add a 3min timeout to each individual tests and enable c…
Browse files Browse the repository at this point in the history
…olor output
  • Loading branch information
bringhurst authored and StephenSorriaux committed Feb 6, 2024
1 parent a875342 commit 242d91e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ flake8==5.0.2
objgraph==3.5.0
pytest==6.2.5
pytest-cov==3.0.0
pytest-timeout==2.2.0
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ extend-exclude = '''
'''

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

[tool.mypy]

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ test =
objgraph
pytest
pytest-cov
pytest-timeout
gevent>=1.2 ; implementation_name!='pypy'
eventlet>=0.17.1 ; implementation_name!='pypy'
pyjks
Expand Down

0 comments on commit 242d91e

Please sign in to comment.