Skip to content

Commit

Permalink
Fix the default columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Nov 23, 2016
1 parent 2d0a3a2 commit 5b30ccc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pytest_benchmark/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ def add_display_options(addoption, prefix="benchmark-"):
addoption(
"--{0}columns".format(prefix),
metavar="LABELS", type=parse_columns,
default="min, max, mean, stddev, median, iqr, outliers, rounds, iterations",
help="Comma-separated list of columns to show in the result table. Default: %(default)r"
default=["min", "max", "mean", "stddev", "median", "iqr", "outliers", "rounds", "iterations"],
help="Comma-separated list of columns to show in the result table. Default: "
"'min, max, mean, stddev, median, iqr, outliers, rounds, iterations'"
)
addoption(
"--{0}name".format(prefix),
Expand Down Expand Up @@ -255,6 +256,7 @@ def pytest_benchmark_compare_machine_info(config, benchmarksession, machine_info
fslocation=benchmarksession.storage.location
)


if hasattr(pytest, 'hookimpl'):
_hookwrapper = pytest.hookimpl(hookwrapper=True)
else:
Expand Down

0 comments on commit 5b30ccc

Please sign in to comment.