Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: pytest
run: |
env
pytest -v --cov --full-trace --timeout=1200
pytest -v --cov

analyze:
name: Analyze Python
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ __pycache__/
.vscode
.vscode/
build/
prof/
/dist/
/pymodbus.egg-info/
venv
downloaded_files/
htmlcov/
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ There are 2 bigger projects ongoing:
* Add features to and simulator, and enhance the web design


Development Instructions
Development instructions
------------------------
The current code base is compatible with python >= 3.8.

Expand All @@ -295,12 +295,15 @@ Make a pull request::

on github open a pull request, check that CI turns green and then wait for review comments.


Test your changes::

cd test
pytest

you can also do extended testing::

pytest --cov <-- Coverage html report in build/html
pytest --profile <-- Call profile report in prof

Internals
^^^^^^^^^
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ development = [
"pytest>=7.3.1",
"pytest-asyncio>=0.20.3",
"pytest-cov>=4.1.0",
"pytest-profiling>=1.7.0",
"pytest-timeout>=2.2.0",
"pytest-xdist>=3.3.1",
"ruff>=0.2.0",
Expand Down Expand Up @@ -220,9 +221,9 @@ all_files = "1"

[tool.pytest.ini_options]
testpaths = ["test"]
addopts = "-p no:warnings --dist loadscope --numprocesses auto"
addopts = "-p no:warnings --durations=10 --dist loadscope --numprocesses auto"
asyncio_mode = "auto"
timeout = 40
timeout = 120

[tool.coverage.run]
source = [
Expand Down