- Shipped support of pytest-xdist >= 2.0 to stable.
- Some tests were fixed as they were in a failing state from a old file reformatting.
- pytest-xdist compatibility was fixed for latest major version: 2.0. The bad terminologies (slaves and masters) were removed.
- Deprecated support of pytest-xdist <2.0, will be dropped on pytest-django-queries 2.0 release.
- Official compatibility for Python 2.7, 3.4 and 3.5 was dropped.
- The cli tools now display the number of duplicated queries.
- Released the stable v1.0.0 release without any changes.
- Added support for running tests into multiple workers (
pytest-xdist
).
- Renamed the marker description to be more meaningful about was it does.
- Fixed a typo in the project description (PyPi and GitHub).
- Added help texts for named parameters in the cli.
- Fixed the wrong help text saying it is taking an integer when it actually expects a file path.
- Users can now mark tests without having the
count_queries
fixture injected automatically if a custom order or manual usage is needed. - Added a better filtering of unwanted keywords in humanization of test names. It now handles test cases names inside modules (dotted import names).
- Added a
backup
command todjango-queries
to make it easier of making a copy of the current results.
- Users can now backup/copy their previous results using the
--django-backup-queries
parameter when runningpytest
. - The HTML cli command now exports to
django-queries-results.html
by default instead ofstdout
, instead, users have to rundjango-queries html -
for the output to go instdout
. - The code now enforces the Black code style and Flake 8 checks in addition to isort.
- Implement a
diff
command for comparing results.
- The requirements that could generate any diverging results between installation have now been freeze.
- A "Read The Docs" documentation has been made and published.
- Guides on how to release and contribute have been added.
- The HTML template has been moved to its own file under the package directory as
templates/default_bootstrap.jinja2
. - The Cli commands are now taking optionally the report path file, so it can now be omitted.
- In #12, stopped storing the benchmark results in a file named after the current date and time.
Instead, it will always save into
.django-queries
and won't contain ajson
file extension anymore to make it less appealing as it's not meant to be read by a human. - In #12, dropped the environment variable
PYTEST_QUERIES_SAVE_PATH
and replaced and introduced the--django-db-bench PATH
option instead, which does exactly the same thing.
- Introduced the cli (#3) with two commands:
show
that process a given benchmark result to render a summary tablehtml
render the table in HTML, the template can be customized using--template <path>
- The plugin is now able to support multiple pytest sessions without conflicting (#1)
- The plugin non-longer benchmarks everything but instead, the user is charged to manually flag each test as to be or not to be benchmarked (#1).
- Initial demo release.