test-log
A replacement of the #[test] attribute that initializes logging and/or tracing infrastructure before running tests.
0.2.21
63M downloads/mo
#1077 most downloaded on crates.io
d-e-s-o/test-log
What this package is like to depend on
Last release 2 months ago
30 May 2026
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 13 of 14 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
15 releases · first in 2021
3 releases in the last 12 months
see the full history below
Release timeline
15 releases · Jun 2021 to May 2026Releases
latest 15-
0.2.2130 May 2026Release notes
Open source →- Fixed spans in generated code, improving
rust-analyzerinteraction
New Contributors
- @jorendorff made their first contribution in #68
Full Changelog: v0.2.20...v0.2.21
- Fixed spans in generated code, improving
-
0.2.2018 Apr 2026Release notes
Open source →- Factored out
test-log-corecrate to facilitate better testing
Full Changelog: v0.2.19...v0.2.20
- Factored out
-
0.2.1928 Nov 2025Release notes
Open source → -
0.2.1830 Jun 2025Release notes
Open source →- Improved cooperation with other similar procedural macros to enable attribute stacking
New Contributors
- @malteneuss made their first contribution in #57
- @kezhuw made their first contribution in #46
Full Changelog: v0.2.17...v0.2.18
Release notes
Open source →- Improved cooperation with other similar procedural macros to enable attribute stacking
-
0.2.1718 Jan 2025Release notes
Open source → -
0.2.1630 Apr 2024Release notes
Open source →- Use
tracing-subscriber'stracing-logfeature to unify log output if bothlogandtracefeatures are enabled - Added
colorfeature to enable colored output (enabled by default)
New Contributors
Full Changelog: v0.2.15...v0.2.16
Release notes
Open source →- Use
tracing-subscriber'stracing-logfeature to unify log output if bothlogandtracefeatures are enabled - Added
colorfeature to enable colored output (enabled by default)
- Use
-
0.2.1526 Feb 2024Release notes
Open source →- Formalized MSRV policy
- Bumped minimum supported Rust version to
1.71 - Bumped
env_loggerdependency to0.11
New Contributors
- @yanns made their first contribution in #41
- @decathorpe made their first contribution in #43
- @dependabot made their first contribution in #44
Full Changelog: v0.2.14...v0.2.15
Release notes
Open source →- Formalized MSRV policy
- Bumped minimum supported Rust version to
1.71 - Bumped
env_loggerdependency to0.11
-
0.2.1406 Dec 2023Release notes
Open source →- Factored out
test-log-macroscrate to relieve users from having to care about tracing/logging dependencies themselves - Introduced
default_log_filterattribute for setting the default log filter on a per-test basis behind newunstablefeature - Improved compile error output on wrong usage
- Bumped minimum supported Rust version to
1.61 - Bumped
env_loggerdependency to0.10
New Contributors
Full Changelog: v0.2.13...v0.2.14
Release notes
Open source →- Factored out
test-log-macroscrate to relieve users from having to care about tracing/logging dependencies themselves - Introduced
default_log_filterattribute for setting the default log filter on a per-test basis behind newunstablefeature - Improved compile error output on wrong usage
- Bumped minimum supported Rust version to
1.61 - Bumped
env_loggerdependency to0.10
- Factored out
-
0.2.1313 Oct 2023Release notes
Open source →- Improved interaction with nested attributes (such as those used by the
test_casecrate), that may not have been parsable in the past - Removed generated
test_implfunction, which could have "leaked" into test cases (#28) - Eliminated dependency on
tracingcrate - Bumped minimum supported Rust version to
1.56 - Bumped
syndependency to2.0
Full Changelog: v0.2.12...v0.2.13
Release notes
Open source →- Improved interaction with nested attributes (such as those used by the
test_casecrate), that may not have been parsable in the past - Removed generated
test_implfunction, which could have "leaked" into test cases (#28) - Eliminated dependency on
tracingcrate - Bumped minimum supported Rust version to
1.56 - Bumped
syndependency to2.0
- Improved interaction with nested attributes (such as those used by the
-
0.2.1215 Jun 2023Release notes
Open source →- Fixed handling of inner
#[test]attributes that add arguments to test function - Added GitHub Actions workflow for publishing the crate
Full Changelog: v0.2.11...v0.2.12
Release notes
Open source →- Fixed handling of inner
#[test]attributes that add arguments to test function - Added GitHub Actions workflow for publishing the crate
- Fixed handling of inner
-
0.2.1123 Jul 2022Release notes
Open source →- Fixed potential build failure due to unhygienic procedural macros
- Switched to using GitHub Actions as CI provider
-
0.2.1024 Mar 2022 -
0.2.923 Mar 2022 withdrawnRelease notes
Open source →- Added support for inner
#[test]attribute arguments - Added CI checks for auto generated code documentation
- Bumped minimum supported Rust version to
1.49
- Added support for inner
-
0.2.821 Nov 2021 -
0.0.029 Jun 2021Nothing published for this version