Skip to content

Commit 5f4c70c

Browse files
authored
Show test execution times in pytest (#835)
Show the slowest tests with executation times > 0.2 s. Reference: https://docs.pytest.org/en/stable/usage.html#profiling-test-execution-duration
1 parent 12adb41 commit 5f4c70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ omit = ["*/tests/*", "*pygmt/__init__.py"]
33

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

88
[tool.isort]
99
profile = "black"

0 commit comments

Comments
 (0)