Displaying 1 to 7 from 7 results

Mockito - Most popular Mocking framework for unit tests written in Java

  •    Java

Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn’t give you hangover because the tests are very readable and they produce clean verification errors.

umock-c - A pure C mocking library

  •    C

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.umock_c is a C mocking library.

facon - Facon is a mocking library in the spirit of the Bacon spec library

  •    Ruby

Facon is a mocking library in the spirit of the Bacon spec library. Small, compact, and works with Bacon and MacBacon. To use Facon with Bacon, simply require 'facon' and you're done.

mockery - Simple mocking library for asynchronous testing in Elixir.

  •    Elixir

Simple mocking library for asynchronous testing in Elixir. Useful in large projects to avoid jumping between config files. Bad idea if you wish to release project as package.




rewiremock - The right way to mock dependencies in Node.js or webpack environment.

  •    Javascript

Rewiremock is a your favorite library. The better version of it. For mocha, ava, karma, and anything not-jest. By its nature rewiremock has same behavior as Mockery. But it can behave like others too. It covers any case. It is the right way to mock your dependencies or perform dependency injection.

mockers - Mocking library for Rust

  •    Rust

Mocking library for Rust. Inspired by Google Mock library for C++.

shortify-punit - 🔨 PHP Mocking Framework, includes method chaining stubbing.

  •    PHP

Basic mocking example, if a function wasn't stubbed the return value will always be NULL. The when function is used to stubbing methods with specific parameters, following a throws, returns or a callback action.