httpmock
blog-rust-http-testing-with-httpmock
httpmock | blog-rust-http-testing-with-httpmock | |
---|---|---|
7 | 1 | |
426 | 0 | |
- | - | |
8.3 | 10.0 | |
25 days ago | over 3 years ago | |
Rust | Rust | |
MIT License | MIT License |
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.
httpmock
-
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.
blog-rust-http-testing-with-httpmock
-
Rust HTTP Testing with httpmock
You can find the source code from this article on Github.
What are some alternatives?
Mockito - HTTP mocking for Rust!
Weld - Full fake REST API generator written with Rust
testcontainers-rs - A library for integration-testing against docker containers from within Rust.
rust - Empowering everyone to build reliable and efficient software.
rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266
inside-vm - Detect if code is running inside a virtual machine (x86 and x86-64 only).
rust - Rust language bindings for TensorFlow
deno - A modern runtime for JavaScript and TypeScript.
gpt-macro - ChatGPT powered Rust proc macro that generates code at compile-time.
testkit - A DSL for testing. Starting with APIs.
compilers-speed - Simple toy project to measure speed of compilers of languages that compiles directly to machine code