awesome-repositories.com
Blog
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
bblimke avatar

bblimke/webmock

0
View on GitHub↗
4,050 stele·577 fork-uri·Ruby·MIT·5 vizualizări

Webmock

WebMock este o bibliotecă Ruby pentru stubbing-ul cererilor HTTP, simularea răspunsurilor și interceptarea rețelei. Servește drept framework de aserțiune de testare pentru verificarea traficului HTTP de ieșire și un strat de interceptare a rețelei care blochează conexiunile externe pentru a preveni cererile accidentale în timpul testării.

Proiectul oferă capabilități pentru generarea dinamică de răspunsuri și secvențierea diferitelor valori de returnare pentru cereri repetate către același endpoint. Suportă simularea eșecurilor de rețea, cum ar fi timeout-urile sau excepțiile, și permite reluarea răspunsurilor folosind date HTTP brute încărcate din fișiere locale.

Biblioteca acoperă o gamă largă de funcții de simulare API și control al rețelei, inclusiv potrivirea cererilor pe baza URI-urilor și a headerelor, înregistrarea semnăturilor cererilor și filtrarea traficului de ieșire. Include, de asemenea, utilitare de monitorizare pentru a intercepta și loga evenimentele de rețea prin callback-uri personalizate.

Features

  • HTTP Stubbing Frameworks - Implements a comprehensive framework for stubbing HTTP requests and returning predefined status codes and bodies.
  • Ruby - Simulates HTTP server responses to isolate application logic from external network dependencies in Ruby projects.
  • Request Body Matchers - Validates request payloads using regular expressions, partial data structures, or custom logic blocks.
  • Application-Level Traffic Interception - Hooks into Ruby HTTP client libraries to divert outgoing traffic into a custom stub handler.
  • Request History Logs - Captures and stores a history of all intercepted requests to enable post-execution assertions.
  • Ruby HTTP Mocking Libraries - Provides utilities to intercept and simulate HTTP traffic within Ruby applications during testing.
  • API Expectation Frameworks - Provides tools to verify that specific API calls were made with the expected parameters and headers.
  • External API Call Assertions - Verifies that an application made expected outgoing HTTP requests to external services.
  • Custom Mock Response Overrides - Enables the configuration of custom status codes, headers, and bodies to override default mock responses.
  • Request Verification - Asserts that outgoing requests were made, skipped, or executed a specific number of times.
  • Network Connection Blockers - Blocks all external network connections by default to prevent accidental requests during testing.
  • Response Simulators - Generates custom status codes, artificial delays, and specific content types to test application resilience.
  • Network Failure Simulations - Provides simulations of network-level errors such as connection timeouts and service outages to verify application resilience.
  • Regex Request Matching - Allows matching API requests using regular expressions and flexible patterns in URIs and headers.
  • Network Request Assertions - Provides assertions for verifying that specific network requests were executed with expected parameters.
  • Network Request Filters - Uses regular expressions and custom logic to block or allow specific network requests based on URL patterns.
  • HTTP Client Interception - Intercepts outgoing network traffic to block external connections and prevent accidental requests during tests.
  • File-Based Response Serving - Serves the raw contents of local files as mock API response bodies.
  • Dynamic Response Callbacks - Provides custom callback functions to generate mock responses dynamically based on incoming request data.
  • Response Sequencing - Returns a sequence of different responses for repeated requests to the same endpoint.
  • Local API Response Mocking - Loads raw HTTP responses from local files to serve as stubbed return values.
  • Mock State Resetting - Includes utilities to reset request history and clear active stubs between individual test cases.
  • Network Connectivity Controls - Restricts or permits network access to specific hosts during test execution to ensure isolation.
  • Testing - HTTP request stubbing.

Istoric stele

Graficul istoricului de stele pentru bblimke/webmockGraficul istoricului de stele pentru bblimke/webmock

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Webmock

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Webmock.
  • nock/nockAvatar nock

    nock/nock

    13,103Vezi pe GitHub↗

    nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts and paths, returning predefined responses to decouple applications from external servers during automated testing. The project functions as an API expectation framework to verify that specific calls were made with correct parameters. It includes a traffic recorder that captures real network interactions as fixtures for playback and a network simulation tool to introduce artificial latency or trigger network errors. Its capabilities cover request matching via hostnames, paths

    JavaScripthttpjavascriptmock
    Vezi pe GitHub↗13,103
  • getsentry/responsesAvatar getsentry

    getsentry/responses

    4,350Vezi pe GitHub↗

    Responses is a Python mocking library designed to intercept outgoing HTTP calls made with the Requests library to return predefined simulated responses. It functions as a request verification framework and a network simulation tool, allowing for the verification of application behavior against various API response patterns without making real network calls. The project distinguishes itself through a traffic recorder that captures real network interactions and saves them to files for deterministic replay. It further enables the simulation of complex network scenarios, including the triggering

    Pythontag-production
    Vezi pe GitHub↗4,350
  • mock-server/mockserver-monorepoM

    mock-server/mockserver-monorepo

    4,897Vezi pe GitHub↗

    This project is a multi-protocol API simulation and mocking system designed to replace external dependencies during development and testing. It provides an API mocking server, a network traffic proxy, and specialized simulators for language model services and identity providers. The system distinguishes itself through deep AI simulation capabilities, including the emulation of language model providers and Model Context Protocol servers using JSON-RPC 2.0. It supports multi-turn conversational logic, state tracking for AI chat APIs, and the visualization of agent execution through call graphs

    Java
    Vezi pe GitHub↗4,897
  • alisoftware/ohhttpstubsAvatar AliSoftware

    AliSoftware/OHHTTPStubs

    5,068Vezi pe GitHub↗

    OHHTTPStubs is an HTTP network mocking library and request interceptor used to simulate server responses for testing application behavior without a live backend. It functions as a network request stubbing tool that captures outgoing network calls and replaces them with predefined mock data, custom status codes, and headers. The library distinguishes itself through its ability to simulate a wide range of network conditions, including artificial latency and connection failures. It supports dynamic response sequencing, allowing the tool to return a series of different responses for the same requ

    Objective-Ciosmockmock-server
    Vezi pe GitHub↗5,068
Vezi toate cele 30 alternative pentru Webmock→

Întrebări frecvente

Ce face bblimke/webmock?

WebMock este o bibliotecă Ruby pentru stubbing-ul cererilor HTTP, simularea răspunsurilor și interceptarea rețelei. Servește drept framework de aserțiune de testare pentru verificarea traficului HTTP de ieșire și un strat de interceptare a rețelei care blochează conexiunile externe pentru a preveni cererile accidentale în timpul testării.

Care sunt principalele funcționalități ale bblimke/webmock?

Principalele funcționalități ale bblimke/webmock sunt: HTTP Stubbing Frameworks, Ruby, Request Body Matchers, Application-Level Traffic Interception, Request History Logs, Ruby HTTP Mocking Libraries, API Expectation Frameworks, External API Call Assertions.

Care sunt câteva alternative open-source pentru bblimke/webmock?

Alternativele open-source pentru bblimke/webmock includ: nock/nock — nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts… getsentry/responses — Responses is a Python mocking library designed to intercept outgoing HTTP calls made with the Requests library to… mock-server/mockserver-monorepo — This project is a multi-protocol API simulation and mocking system designed to replace external dependencies during… alisoftware/ohhttpstubs — OHHTTPStubs is an HTTP network mocking library and request interceptor used to simulate server responses for testing… wheresrhys/fetch-mock — Fetch-mock is a testing utility designed to isolate application code from external network dependencies by… didi/mpx — MPX is a cross-platform framework designed to build applications for multiple mini-program ecosystems and the web from…