yam-rs | mockall | |
---|---|---|
2 | 3 | |
2 | 1,482 | |
- | - | |
9.1 | 7.8 | |
4 days ago | 9 days ago | |
Rust | Rust | |
GNU Lesser General Public License v3.0 only | Apache License 2.0 |
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.
yam-rs
- What's everyone working on this week (35/2023)?
-
Iterating on Testing in Rust
https://github.com/Ygg01/steel_yaml/blob/master/tests/yaml_t...
Here is how I made dynamic tests for it.
But cargo nextest is a game changer. Colored output + fast fail (configurable) + timeout detection is just great.
https://nexte.st/book/custom-test-harnesses.html
mockall
-
Iterating on Testing in Rust
I use the mockall crate myself, which works rather well. It does however mean that you need to generally write your code as traits, and pass them around as traits.
https://github.com/asomers/mockall
-
AMA with Bastian Gruber: Ask your questions!
- Mocking: Have a look at mockall: https://github.com/asomers/mockall
-
Rust - 6 months and counting
Fortunately for me, there is an excellent crate Mockall maintained by angels and with the owner Alan Somers pretty active in helping the community when a question arises.
What are some alternatives?
proptest - Hypothesis-like property testing for Rust
serverless-graalvm-demo - Sample serverless application written in Java compiled with GraalVM native-image
quickcheck - Automated property based testing for Rust (with shrinking).
serverless-python-demo - Sample serverless application written in Python
serverless-rust-demo - Sample serverless application written in Rust
serverless-kotlin-demo
serverless-go-demo - Sample serverless application written in Golang
serverless-groovy-demo
serverless-typescript-demo
cucumber - Cucumber testing framework for Rust. Fully native, no external test runners or dependencies.
code - Code for the book "Rust Web Development"
docs.rs - crates.io documentation generator