All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Updated to
tracing-subscriber@v0.3
.
- Dropping an
Assertion
now removes the backing state used to collect the different span events, which means that tests which run the same code over multiple test cases won't accumulate data in the assertion state over time that would lead to inconsistency. Said differently, creating an assertion for a second time, so long as the first has been dropped, will correctly start out with a clean state now.
- New assertion family:
was_not_*
. Now you can assert that a given lifecycle event did not occur i.e. a span was not entered, or hasn't yet closed, etc. - New assertion family:
was_*_exactly
. These assertions replacewas_*_many
, which were named as if they could potentially be either "at least" or "exactly", while the docs said explicitly that they were "at least", but in reality, the checks were "exactly." Now we have each group respectively with better naming.
- Renamed the
was_*_many
assertion family towas_*_at_least
to better reflect their "at least" nature, and to match the naming scheme of the newly-addedwas_*_exactly
assertion family.
AssertionRegistry
can now be cloned.
- Ability to require a parent span (any parent, not direct predecessor) to match a specific name.
- Tweaks to documentation. No code changes.
- Genesis of the crate.