Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →
Faux Alternatives
Similar projects and alternatives to faux
-
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
-
-
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
mock_me
MockMe is a tool used to mock dependencies / function calls when running unit (lib) tests in Rust.
-
-
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a better faux alternative or higher similarity.
faux discussion
faux reviews and mentions
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
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
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
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
These are the tests for an example: https://github.com/nrxus/faux/blob/master/tests/asynchronous.rs
-
A note from our sponsor - CodeRabbit
coderabbit.ai | 6 Feb 2025
Stats
Basic faux repo stats
4
449
6.5
about 2 months ago
nrxus/faux is an open source project licensed under MIT License which is an OSI approved license.
The primary programming language of faux is Rust.