Stestr

Latest version: v4.1.0

Safety actively analyzes 627182 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

4.1.0

This stestr release is a feature release that primarily fixes compatibility with subunit 1.4.3 and initial compatibility with Python 3.12.

Features

- Add support for configuring stestr via a pyproject.toml file.


What's Changed
* Apply black autoformatter to code base by jogo in https://github.com/mtreinish/stestr/pull/332
* Reuse subunit_trace output/validation logic for load/run by jogo in https://github.com/mtreinish/stestr/pull/333
* Revert "Fix 330 - Preserve load-list order" by mtreinish in https://github.com/mtreinish/stestr/pull/335
* Remove vestigial future package from requirements by 0xDEC0DE in https://github.com/mtreinish/stestr/pull/338
* Pin black to 2022 version by mtreinish in https://github.com/mtreinish/stestr/pull/343
* Fix ResourceWarning from SubunitTestRunner._list() by mtreinish in https://github.com/mtreinish/stestr/pull/342
* Add support for storing stestr configs in pyproject.toml by 0xDEC0DE in https://github.com/mtreinish/stestr/pull/341
* Adding another prefix to the existing list of unittest_import_strs by psathyan in https://github.com/mtreinish/stestr/pull/339
* Update docs job to avoid setup.py entrypoint by mtreinish in https://github.com/mtreinish/stestr/pull/346
* Replace removed SafeConfigParser with ConfigParser by hroncok in https://github.com/mtreinish/stestr/pull/344
* Explicitly list extras as dependency by pshchelo in https://github.com/mtreinish/stestr/pull/348

New Contributors
* jogo made their first contribution in https://github.com/mtreinish/stestr/pull/332
* 0xDEC0DE made their first contribution in https://github.com/mtreinish/stestr/pull/338
* psathyan made their first contribution in https://github.com/mtreinish/stestr/pull/339
* hroncok made their first contribution in https://github.com/mtreinish/stestr/pull/344
* pshchelo made their first contribution in https://github.com/mtreinish/stestr/pull/348

**Full Changelog**: https://github.com/mtreinish/stestr/compare/4.0.0...4.1.0

4.0.1

This stestr release is a bugfix release that fixes two issues that were
identified in the 4.0.0 release.

Fixes
-----

* Fixed an issue around the unittest runner unexpectedly not running the
requested tests (or executing them in an unexpected order) causing odd
failures that were difficult to debug.
* Fixed the output handling of `stestr run` and `stestr load` so that
any segfaults or unexpected failures in a test worker are now properly
reported in the subunit-trace output.

4.0.0

This is a major version release because it drops support for the `'sql'`
repository type and also the flags and Python API flags for selecting
the repository type, which was deprecated in the 3.2.0 release. This was
always an experimental feature that never reached feature parity with
the default ``'file'`` repository type. If you were relying on this
repository type you should transition to using a file repository type and
manually leverage subunit2sql to store data in a SQL database.

This release also support for running with Python 3.5. If you're relying
on being able to use stestr with Python 3.5 you can continue to use
stestr < 4.0.0.

New Features
------------

* Official support for Python 3.10. While 3.10 worked fine in previous
stestr releases, this release is the first to include testing and mark
support in the package metadata.

Fixes
-----

* Fixed the execution order of the stestr run --load-list option so that
tests are executed in the order specified in the list. This was
inadvertently broken at some point so that the execution order of
the tests were shuffled

3.2.1

This is a patch version release that contains a bugfix for the detection
and reporting of instances where a test worker exits without reporting a
test's final status. This is critical for debugging situations where
there is a segfault or other system error in a test.

Fixes
-----

- Fixed the detection of test worker failures before reporting final
result status (resulting in a test showing a status of "inprogress").
This enables reporting any tests that were running when the test
worker exited.

3.2.0

This is a minor version release that adds a couple new features and
fixes bugs.

New Features
------------

* Support for configuring stestr via a tox.ini file has been added. It's
now no longer needed to create a separate .stestr.conf file and
instead it can be embedded in an existing tox.ini file.
* A new stestr command, `stestr history list` has been added to list the
previous runs in the stestr repository.
* A new stestr command, `stestr history show` has been added to show the
output from a previous run from the stestr repository.
* A new stestr command, `stestr history remove`, has been added to
remove runs from the stestr repository.

Deprecations
------------

* The 'sql' repository type has been deprecated and will be removed in
the 4.0.0 release. This was never the default repository type and for its
entire existence it was listed as an experimental feature. If you were
relying on this repository type you should transition to using a file
repository type and manually leverage subunit2sql to store data in a SQL
database.
* The `--repo-type`/`-r` common argument for switching the repository
type has been deprecated and will be removed in the 4.0.0 release.

Fixes
-----

* Runs that have a worker crash outside of Python (typically with an
error like a segfault) are now properly highlighted in the default
subunit-trace output. Previously they would just silently be listed as
'inprogress' and not show as failed anywhere.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.