mock-it
This library aims to make mocking reliable (by nathanielsimard)
httpmock
HTTP mocking library for Rust (by alexliesenfeld)
mock-it | httpmock | |
---|---|---|
1 | 8 | |
42 | 567 | |
- | 9.0% | |
0.0 | 8.3 | |
over 2 years ago | 8 days ago | |
Rust | Rust | |
MIT License | 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.
mock-it
Posts with mentions or reviews of mock-it.
We have used some of these posts to build our list of alternatives
and similar projects.
httpmock
Posts with mentions or reviews of httpmock.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-11.
- Httpmock: HTTP Mocking Library for Rust
-
Mocking HTTP Services in Rust
Static YAML file configuration: This mode allows you to set up a mock server with a static configuration that does not need to change. This approach does not require any test execution or Rust program. Instead, the mock server reads its configuration from YAML mock definition files, which are very similar in structure to the Rust API (see example here).
-
Rust HTTP Testing with httpmock
HTTP mocking libraries allow you to simulate HTTP responses so you can easier test code that depends on third-party APIs. This article shows how you can use httpmock to do this in Rust.
-
httpmock - A Rust library and tool for mocking and prototyping HTTP endpoints.
Thad you mean with "async runtime conflicts"? My tests are running agains three different async rutimes (tokio, async_std and actix_rt), seemingly without any problems. I checked that manually and I also see no problems (all green, not conflicts). If you think I am mistaken, please consider reporting it here.
- httpmock - An HTTP mocking library and prototyping tool.
What are some alternatives?
When comparing mock-it and httpmock you can also consider the following projects:
mry - A simple mocking library for structs, traits, and function.
Mockito - HTTP mocking for Rust!
unimock - A versatile and developer-friendly trait mocking library
Weld - Full fake REST API generator written with Rust
Mockiato - A strict, yet friendly mocking library for Rust 2018
testcontainers-rs - A library for integration-testing against docker containers from within Rust.