Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ filterwarnings = ["error", "ignore::DeprecationWarning"]
# Doctest python code in docs, python code in src docstrings, test functions in tests
Comment thread
tpoliaw marked this conversation as resolved.
Resolved
testpaths = "docs src tests"
asyncio_mode = "auto"
# Timeout settings for pytest-timeout
timeout = 10

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I had a look at ophyd-async they are keeping timeout at 60 seconds
So I think I kept this timeout can stay at 10 seconds


# Timeout using thread method to make pytest-timeout work with pytest-xdist
timeout_method = "thread"
timeout_func_only = true
[tool.coverage.run]
patch = ["subprocess"]
data_file = "/tmp/blueapi.coverage"
Expand Down Expand Up @@ -162,6 +165,9 @@ commands = [
"pytest",
"-n",
"logical",
# Disable worker restarts so pytest-xdist does not rerun a test in another worker after pytest-timeout triggers
"--max-worker-restart",
"0",
"tests/unit_tests",
"--cov=blueapi",
"--cov-report",
Expand Down