faux VS wiremock-rs

Compare faux vs wiremock-rs and see what are their differences.

wiremock-rs

HTTP mocking to test Rust applications. (by LukeMathWalker)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
faux wiremock-rs
4 2
404 590
- -
4.3 7.5
about 1 month ago 3 months ago
Rust Rust
MIT License 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.

faux

Posts with mentions or reviews of faux. 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
    7 projects | dev.to | 23 May 2023
    Faux allows you to create mock versions of a struct without complicating your code. Like many mocking libraries, faux is only recommended for testing purposes. Mock objects in production may be unstable and cause production problems.
  • Mocking Crates Experience
    1 project | /r/rust | 5 Jan 2023
    I am not a fan of the: "make a trait for every struct so it can be tested" strategy that a lot of mocking libraries or hand rolled mocks do in Rust so I wrote my own library that allows you mock structs directly: https://github.com/nrxus/faux/. Unlike libraries that rely on using traits/dynamic dispatch for mocking this let's your signatures stay as simple as you want them and not incur any runtime cost when doing non-test builds.
  • Mocking trait object without a library
    1 project | /r/rust | 16 Aug 2021
    for a quick shill moment: I did write a mocking library that deliberately does not pollute the original object and tries to be as out of the way as possible: https://github.com/nrxus/faux/. It does work by using macros (don't hate me yet!) but these macros will only be executed when building for test thus not polluting the original objects for production code.
  • faux: a struct mocking library - landing v0.1
    1 project | /r/rust | 19 Apr 2021
    These are the tests for an example: https://github.com/nrxus/faux/blob/master/tests/asynchronous.rs

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
    7 projects | dev.to | 23 May 2023
    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
    4 projects | /r/rust | 2 Apr 2021
    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 faux and wiremock-rs you can also consider the following projects:

Weld - Full fake REST API generator written with Rust

spring-cloud-contract - Support for Consumer Driven Contracts in Spring

Mockito - HTTP mocking for Rust!

stubr - Rust implementation of Wiremock

mock_derive - A mocking library for Rust-lang

mry - A simple mocking library for structs, traits, and function.

unimock - A versatile and developer-friendly trait mocking library