test-context
A library for providing custom setup/teardown for Rust tests without needing a test harness
0.5.8
7.1M downloads/mo
#3753 most downloaded on crates.io
source
What this package is like to depend on
Last release 4 months ago
24 Apr 2026
Release timing varies
gaps range from 8 days to 1.6 years
Most releases are documented
notes for 15 of 17 stable releases
3 versions withdrawn
withdrawn after publishing
6 years old
20 releases · first in 2021
9 releases in the last 12 months
see the full history below
Release timeline
20 releases · Jan 2021 to Apr 2026
2022
2023
2024
2025
2026
Releases
latest 20-
0.5.824 Apr 2026 -
0.5.722 Apr 2026 -
0.5.622 Apr 2026 -
0.5.507 Mar 2026 -
0.5.410 Nov 2025 -
0.5.306 Nov 2025Release notes
Open source →Fixed
- Taking mutable ownership when skipping the teardown doesn't work (#60)
-
0.5.206 Nov 2025 withdrawnRelease notes
Open source →Added
- make it so immutable references & full ownership can be taken depending on context (#58)
Other
- update CHANGELOGS
-
0.5.104 Nov 2025Release notes
Open source →Fixed
- Regression in version 0.5.0 (#55)
Added
- Add a CHANGELOG by @JasterV
- Add a rust-toolchain.toml by @JasterV
-
0.5.029 Oct 2025 withdrawnRelease notes
Open source →Added
- Added the ability to work with rstest by @killpop3770 in #51
Changed
- Explain why #[test_context] must come before #[tokio::test]; clarify attribute expansion order by @vilinski in #49
- Update README.md by @JasterV in #47
- Update dependabot & add release-plz workflow by @JasterV
Fixed
- Manual drop on tests by @JasterV
New Contributors
-
0.4.127 Jan 2025Nothing published for this version
-
0.4.027 Jan 2025Release notes
Open source →Changed
- Upgrade to 0.4.0 by @JasterV in #46
- Support generic types in test_context macro by @JasterV in #45
- Support generic types in test_context macro by @rookiecj in #44
New Contributors
- @rookiecj made their first contribution in #44
-
0.3.027 Feb 2024Release notes
Open source → -
0.2.026 Feb 2024Release notes
Open source →Changed
- Merge pull request #38 from JasterV/chore/upgrade-to-0.2.0-version by @JasterV in #38
- Upgrade to 0.2.0 version by @JasterV
- Merge pull request #37 from JasterV/refactor/remove-async-trait-support by @JasterV in #37
Removed
- Remove support for async-trait crate by @JasterV
-
0.1.626 Feb 2024Release notes
Open source →Changed
- Merge pull request #36 from JasterV/chore/update-to-0-1-6 by @JasterV in #36
- Update to 0.1.6 by @JasterV
- Merge pull request #35 from JasterV/chore/update-patch-version by @JasterV in #35
- Update patch version by @JasterV
- Merge pull request #34 from JasterV/refactor/cargo-workspace by @JasterV in #34
- Update workspace properties by @JasterV
- Restructure the workspace members organization by @JasterV
- Merge pull request #33 from JasterV/chore/update-package-information by @JasterV in #33
- Update crate information by @JasterV
- Merge pull request #31 from JasterV/fix/doc-tests-clippy-error by @JasterV in #31
- Merge pull request #29 from JasterV/dependabot/cargo/syn-tw-2 by @JasterV in #29
- Merge branch 'main' into dependabot/cargo/syn-tw-2 by @JasterV
- Merge pull request #23 from yotamofek/syn2 by @JasterV in #23
- Merge branch 'main' into syn2 by @JasterV
- Merge branch 'main' into syn2 by @JasterV
- Update syn by @yotamofek
- Update syn requirement from ^1 to ^2 by @dependabot[bot]
- Merge pull request #30 from JasterV/chore/update-to-2021-edition by @JasterV in #30
- Update to 2021 rust edition by @JasterV
- Merge pull request #28 from JasterV/JasterV-patch-1 by @JasterV in #28
- Create dependabot.yml by @JasterV
- Merge pull request #27 from JasterV/JasterV-patch-1 by @JasterV in #27
- Update README.md by @JasterV
- Update README.md by @markhildreth
- Merge pull request #19 from SomeoneToIgnore/patch-1 by @markhildreth in #19
- Use proper World capitalization in the main example by @SomeoneToIgnore
Fixed
- Clippy unit test on doctests warnings by @JasterV
New Contributors
- @JasterV made their first contribution in #36
- @dependabot[bot] made their first contribution
- @yotamofek made their first contribution
- @SomeoneToIgnore made their first contribution
-
0.1.526 Feb 2024 withdrawnNothing published for this version
-
0.1.419 Jul 2022 -
0.1.327 Feb 2021Release notes
Open source →Added
- Add basic impl TestContext for AsyncTestContext by @Shadow53
Changed
- Merge pull request #11 from markhildreth/bump-to-0.1.3 by @markhildreth in #11
- Bumped to v0.1.3 by @markhildreth
- Merge pull request #10 from markhildreth/add-sync-async-impl-docs by @markhildreth in #10
- Documented behavior of AsyncContext with normal function. by @markhildreth
- Merge pull request #9 from Shadow53/impl-sync-for-async by @markhildreth in #9
- Run cargo fmt by @Shadow53
New Contributors
- @Shadow53 made their first contribution
-
0.1.207 Feb 2021Release notes
Open source →Added
- Added badges by @markhildreth
Changed
- Merge pull request #7 from markhildreth/bump-to-0.1.2 by @markhildreth in #7
- Bumped to version v0.1.2 by @markhildreth
- Merge pull request #6 from markhildreth/badges by @markhildreth in #6
- Merge pull request #5 from markhildreth/fixed-typo by @markhildreth in #5
- Merge branch 'main' into fixed-typo by @markhildreth
- Merge pull request #4 from markhildreth/future-dependency by @markhildreth in #4
- Forced futures to be imported through test_context crate. by @markhildreth
- Fixed typo in documentation by @markhildreth
-
0.1.118 Jan 2021Release notes
Open source →Changed
- Merge pull request #3 from markhildreth/v0.1.1 by @markhildreth in #3
- Bumped to version v0.1.1 by @markhildreth
- Merge pull request #2 from markhildreth/github-workflows by @markhildreth in #2
- Updated github ci.yml by @markhildreth
- Merge pull request #1 from markhildreth/allow-returns by @markhildreth in #1
- Allow return of wrapped functions value. by @markhildreth
-
0.1.018 Jan 2021Nothing published for this version