Skip to content

Commit

Permalink
Show test execution times in pytest (#835)
Browse files Browse the repository at this point in the history
Show the slowest tests with executation times > 0.2 s.

Reference: https://docs.pytest.org/en/stable/usage.html#profiling-test-execution-duration
  • Loading branch information
seisman authored Feb 5, 2021
1 parent 12adb41 commit 5f4c70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ omit = ["*/tests/*", "*pygmt/__init__.py"]

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--verbose --doctest-modules --mpl --mpl-results-path=results"
addopts = "--verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results"

[tool.isort]
profile = "black"
Expand Down

0 comments on commit 5f4c70c

Please sign in to comment.