- use trusted publisher for release (see https://docs.pypi.org/trusted-publishers/)
Version 1.3.0 (2024-08-22)
Allows to fail tests that cannot be ordered.
- added option
--error-on-failed-ordering
to make tests that cannot be ordered fail (see #140)
- added missing documentation examples, structured examples according to documentation structure
Version 1.2.1 (2024-04-02)
Bugfix release.
- handle dependency markers with the same alias name (see #71)
- specify rootdir to recursive pytest calls to avoid searching a large directory tree unnecessarily (see #110)
- avoid unknown marker warning in tests (see #101)
- added pytest 8 to CI tests
Version 1.2.0 (2023-11-18)
Allows using custom markers for ordering.
- added option
--order-marker-prefix
to allow using custom markers for ordering
- added pre-commit hook for linters
- added Python 3.12 to supported versions
Version 1.1.0 (2023-03-10)
Adds support for executing tests more than once using order marks.
- added support for multiple test order markers
- removed official support for Python 3.6
- added pytest 7.x to CI tests
- added Python 3.11 to and removed Python 3.6 from CI tests
- moved documentation to Read the Docs
Version 1.0.1 (2022-01-09)
Bugfix release.
- correctly handle combined class and test order markers, see #45
- adapt code to changed type of
automark_dependency
in development branch ofpytest-dependency
, see #58
Version 1.0.0 (2021-05-30)
First Python 3 only version.
- removed support for Python 2.7 and 3.5
- removed official support for pytest < 5.0.0 (older versions may still work, but they are not tested)
- changed notation of relative markers in other modules - instead of using the dot notation, the standard pytest nodeid is used, see #24
- using parametrized test names that include the parameter is no longer supported, just use the name without the parameter instead
- added support for the
pytest-dependency
optionautomark_dependency
- added support for relative ordering of parametrized tests using the test name without the parameter value, see #38
- re-added Python 3.10 to CI tests (for pytest >= 6.2.4)
- added type hints
Version 0.11.0 (2021-04-11)
Adds support for multiple relative markers for the same test.
- added support for more than one relative marker for the same test
- added Python 3.10 to CI tests
Version 0.10.0 (2021-03-18)
Adds support for class-level relative markers and directory level scope.
- added support for class level relative markers, see #7
- added option
--order-scope-level
which allows grouping tests on the same directory level, see #8
- fixed sorting of dependency markers that depend on an item with the same name in different modules
- added performance tests to prevent performance degradation
- added automated deploy workflow step triggered on creating a tag
Version 0.9.5 (2021-02-16)
Introduces hierarchical ordering option and fixes ordering of session-scoped dependency markers.
- tests with unresolved relative markers are now handled like tests without order markers instead of being enqueued after all other tests
- added
group-order-scope
option to allow hierarchical ordering on module and class scope, see #6
- the dependency marker scope is now considered for resolving marker names (module scope had been assumed before)
- dependency markers in session scope referenced by the nodeid are now
correctly sorted if using the
order-dependencies
option
Version 0.9.4 (2021-01-27)
Patch release to make packaging easier.
- use codecov instead of coveralls, that is failing
- added pytest 6.2 to CI tests
- added tests, examples and documentation to source package, see #5
Version 0.9.3 (2021-01-14)
Bugfix release.
- fixed handling of more than one attribute in an order marker
Version 0.9.2 (2020-11-13)
Friday the 13th release.
- changed definition of classes in before/after markers (now uses
::
as delimiter)
- fixed handling of before/after markers in different classes and modules
- fixed handling of names in dependencies - did not match the actual
behavior of
pytest-dependency
Version 0.9.1 (2020-11-11)
This is a bugfix only release.
- fixed handling of relative markers in classes
- fixed handling of dependencies (could have been added twice)
Version 0.9.0 (2020-11-08)
This is the last major version that will support Python 2 - Python 2 support will be dropped in version 1.0. There is no timeline for that release, as there are currently no new features planned - further development will be demand-driven.
- removed support for pytest 3.6 (it still may work, just isn't tested anymore)
- added configuration option for sparse sorting, e.g. the possibility to
fill gaps between ordinals with unordered tests (see also
this issue in
pytest-ordering
) - ignore ordering if it would break a dependency defined by the
pytest-dependency
plugin - experimental: added configuration option for ordering all dependencies
defined by the
pytest-dependency
plugin - added
index
keyword for ordering as alternative to raw number
- correctly handle combined index and dependency attributes
- added list of open issues in
pytest-ordering
with respective state inpytest-order
Version 0.8.1 (2020-11-02)
- added configuration option for sorting scope, see #2
Version 0.8.0 (2020-10-30)
This release is mostly related to the consolidation of infrastructure (documentation build and tests in CI build) and documentation.
- fixed the handling of unknown marker attributes (test had been skipped)
- added automatic documentation build on change
- added Python 3.9, pypy3 and pytest 6.0 and 6.1 to CI builds
- use GitHub Actions for CI builds to speed them up, added Windows CI builds
- added regression test for
pytest-xdist
(imported from PR #52)
Version 0.7.1 (2020-10-24)
Update after renaming the repository and the package.
- renamed repository and package from
pytest-ordering2
topytest-order
- changed the used marker from
run
toorder
, removed all additional markers (see #38)
- use separate documentation pages for release and development versions
Imported version from pytest-ordering, including some PRs (manually merged). Note: this version has been removed from PyPi to avoid confusion with the changed name in the next release.
- added support for markers like run(before=...), run(after=), run("first") etc. (imported from PR #37)
- added
--indulgent-ordering
to request that the sort from pytest-ordering be run before other plugins. This allows the built-in--failed-first
implementation to override the ordering. (imported from PR #50) - include LICENSE file in distribution (imported from PR #68)
- added more pytest versions, fix pytest-cov compatibility issue, remove Python 3.4, add Python 3.8 (imported from PR #74)
- moved documentation to GitHub Pages