Customizing the Outputs ======================= Customizing the console output ++++++++++++++++++++++++++++++ To be done, feel free to open a PR! Customizing the HTML output +++++++++++++++++++++++++++ We are using `jinja2 `_ as a template engine for rendering results. You can customize it by passing the ``--template `` option. The test data are passed to the ``data`` variable. It contains an iterator of: .. code-block:: python [ ("the module name", [ "the test name", {"query-count": int}, ... ], ... ] .. note:: We also provide a ``humanize`` function that takes a string a removes from it the ``test_`` prefix. For example, you would do the following to show all the results: .. code-block:: jinja {% for module_name, module_data in data %}

{{ humanize(module_name) }}

{% for test_entry in module_data %} {% else %} {% endfor %}
Benchmark name Query count
{{ humanize(test_entry.test_name) }} {{ test_entry['query-count'] }}

No data.

{% else %}

No data.

{% endfor %}