rstest
Fixture-based test framework for Rust (by la10736)
lets_expect
Clean tests in Rust (by tomekpiotrowski)
Our great sponsors
rstest | lets_expect | |
---|---|---|
4 | 2 | |
1,004 | 59 | |
- | - | |
6.4 | 0.0 | |
9 days ago | about 1 year ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rstest
Posts with mentions or reviews of rstest.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-10.
-
Announcing lets_expect - Clean tests in Rust.
Check out https://github.com/la10736/rstest
- Testing in rust: are there any useful crates, macros etc that you use to make this easier and less verbose?
-
pytest features in Rust
As far as I'm aware, the only crate that offers pytest concepts to any notable extent is rstest. While very useful, its focus is only on fixtures and parametrization. It provides only partial support for them, and no support at all for stuff like hooks, plugins, and other advanced pytest features.
-
TestCase v2.0.0 has been released!
How does this compare to something like rstest?
lets_expect
Posts with mentions or reviews of lets_expect.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-10.
-
Announcing lets_expect - Clean tests in Rust.
Github docs.rs
-
Testing in rust: are there any useful crates, macros etc that you use to make this easier and less verbose?
For that reason I've recently created lets_expect. It's a procedural macro that introduces its own syntax for unit tests inspired by RSpec's one-liner syntax. I think it looks very clean and concise. I consider it experimental at this point, so I haven't announced it anywhere yet, but I use it to test some of my Rust code. Basic structure is as follows:
What are some alternatives?
When comparing rstest and lets_expect you can also consider the following projects:
test-case - Rust procedural macro attribute for adding test cases easily
parse-rosetta-rs - Comparing parser APIs
foundry - Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
jasmine - Simple JavaScript testing framework for browsers and node.js
Mockito - HTTP mocking for Rust!
AssertJ - AssertJ is a library providing easy to use rich typed assertions
rust-counter-strings - 🧵 Generate self-describing strings of a given length to help aid software testing
toml - Rust TOML Parser
bolero - property testing and verification front-end for Rust
kani - Kani Rust Verifier
sandbox - ⏳ A Command-Line Sandbox Tester for Different Environments