All Projects → lipanski → Mockito

lipanski / Mockito

Licence: mit
HTTP mocking for Rust!

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Mockito

Httpmock
HTTP mocking library for Rust.
Stars: ✭ 76 (-77.31%)
Mutual labels:  test, mock, test-framework
node-mock-examples
Examples of tests that mock Node system APIs: fs, http, child_process, timers
Stars: ✭ 38 (-88.66%)
Mutual labels:  mock, test
laika
Log, test, intercept and modify Apollo Client's operations
Stars: ✭ 99 (-70.45%)
Mutual labels:  mock, test
local-data-api
Data API for local, you can write unittest for AWS Aurora Serverless's Data API
Stars: ✭ 99 (-70.45%)
Mutual labels:  mock, test
PixelTest
Fast, modern, simple iOS snapshot testing written purely in Swift.
Stars: ✭ 56 (-83.28%)
Mutual labels:  test, test-framework
gadgeto
Gadgeto! is a collection of tools that aim to facilitate the development of REST APIs in Go.
Stars: ✭ 38 (-88.66%)
Mutual labels:  mock, test-framework
IO-TESTER
A functional test framework
Stars: ✭ 32 (-90.45%)
Mutual labels:  test, test-framework
instant-mock
Quick and Easy web API mock server.
Stars: ✭ 27 (-91.94%)
Mutual labels:  mock, test
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-94.03%)
Mutual labels:  test, test-framework
jest-launchdarkly-mock
Easily unit test LaunchDarkly feature flagged components with jest
Stars: ✭ 14 (-95.82%)
Mutual labels:  mock, test
stub-server
Stub server for REST APIs
Stars: ✭ 14 (-95.82%)
Mutual labels:  mock, test
htest
htest is a http-test package
Stars: ✭ 24 (-92.84%)
Mutual labels:  mock, test
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✭ 41 (-87.76%)
Mutual labels:  test, test-framework
alexa-skill-test-framework
Framework for easy offline black-box testing of Alexa skills.
Stars: ✭ 64 (-80.9%)
Mutual labels:  test, test-framework
dextool
Suite of C/C++ tooling built on LLVM/Clang
Stars: ✭ 81 (-75.82%)
Mutual labels:  mock, test
Telegraf-Test
Telegraf Test - Simple Test ToolKit of Telegram Bots
Stars: ✭ 22 (-93.43%)
Mutual labels:  test, test-framework
Hippolyte
HTTP Stubbing in Swift
Stars: ✭ 109 (-67.46%)
Mutual labels:  mock, test
testza
Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more! 🍕
Stars: ✭ 409 (+22.09%)
Mutual labels:  test, test-framework
mockingbird
🐦 Decorator Powered TypeScript Library for Creating Mocks
Stars: ✭ 70 (-79.1%)
Mutual labels:  mock, test
httptest
A Test Environment for HTTP Requests in R
Stars: ✭ 76 (-77.31%)
Mutual labels:  mock, test-framework

HTTP mocking for Rust!

Get it on crates.io.

Documentation is available at https://docs.rs/mockito.

Before upgrading, make sure to check out the changelog.

Contribution Guidelines

  1. Check the existing issues and pull requests.
  2. One commit is one feature - consider squashing.
  3. Format code with cargo fmt.

Development

Tests

Run tests:

cargo test

...or run tests using a different toolchain:

rustup run --install 1.42.0 cargo test

...or run tests while disabling the default features (e.g. the colors):

cargo test --no-default-features

Code style

Mockito uses rustfmt as a general code style.

Install rustfmt:

rustup component add rustfmt

Format code:

cargo fmt

Some editors might provide a plugin to format your Rust code automatically.

Linter

Mockito uses clippy and it should be run always on the minimum supported Rust version, in order to ensure backwards compatibility.

Install clippy:

rustup component add clippy-preview

Run the linter on the minimum supported Rust version:

rustup run --install 1.42.0 cargo clippy --lib --tests --all-features -- -D clippy::complexity

Release

Release:

cargo publish

Benchmarks

Install rust nightly:

rustup install nightly

Run benchmarks:

rustup run nightly cargo bench

Logo courtesy to http://niastudio.net 👌

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].