stubr
Rust implementation of Wiremock (by beltram)
wiremock-rs
HTTP mocking to test Rust applications. (by LukeMathWalker)
stubr | wiremock-rs | |
---|---|---|
2 | 2 | |
58 | 590 | |
- | - | |
5.6 | 7.5 | |
about 1 month ago | 3 months ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
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.
stubr
Posts with mentions or reviews of stubr.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-04-02.
-
Bringing in contract testing !
Stubr is producer-driven. Why ? One one hand, being producer-driven allows you to write a contract only once, on the producer side and to reuse it. On the other hand, consumer-driven, while being more flexible, requires the contract to be written for each consumer. It prevents reuse and is more verbose to write and cumbersome to maintain as it requires some complex CI workflows to test the latest consumer contracts on a live instance of the producer.
-
stubr: Wiremock in Rust
I also set up an incremental benchmark to track down progresses made in each version of stubr. I also did a (very naive) benchmark of stubr against the original Java Wiremock here. Though too simple and not very objective (Wiremock not optimized at all), it still highlights a mean cpu usage divided by 4 and a mean memory usage divided by 100+ more a slightly better and steadier throughput.
wiremock-rs
Posts with mentions or reviews of wiremock-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-23.
-
Mocking in Rust: Mockall and alternatives
Wiremock provides mocking services for applications that interact with HTTP APIs. With Wiremock, you can create mock HTTP servers for testing.
-
stubr: Wiremock in Rust
A few weeks ago I was another victim of the RIIR (Rewrite It In Rust) agenda. I got inspired by the awesome wiremock-rs. At first sight, I saw it hadn't the ability to start a mock server from json stubs. That's the kind of functionality I'm intensively using in my daily job of Java developer ; may it be for contract testing with Spring Cloud Contract or for mocking external services in integration (sometimes perf) tests.
What are some alternatives?
When comparing stubr and wiremock-rs you can also consider the following projects:
spring-cloud-contract - Support for Consumer Driven Contracts in Spring
mock_derive - A mocking library for Rust-lang
mry - A simple mocking library for structs, traits, and function.