Tag

Mock

0 views collected around this technical thread.

JD Tech
JD Tech
Apr 27, 2025 · Backend Development

A Lightweight Mock/Spy Tool for Data Consistency in RPC Timeout Scenarios

The article analyzes data‑consistency challenges caused by RPC timeouts, especially when interfaces lack idempotency or idempotency fails, and presents a lightweight mock/spy utility that can intercept, mock, or spy on service calls to quickly restore consistency in distributed systems.

IdempotencyMockRPC
0 likes · 11 min read
A Lightweight Mock/Spy Tool for Data Consistency in RPC Timeout Scenarios
Tencent Cloud Developer
Tencent Cloud Developer
Dec 18, 2024 · Backend Development

API Management Platform Construction, Lifecycle Governance, and AI‑Driven Technical Debt Mitigation

The talk describes how Tencent News consolidated fragmented legacy APIs by adopting YAPI (with Swagger UI) for unified documentation, dynamic mocking, and automated Swagger generation, instituted full lifecycle governance and monitoring, and leveraged large‑language‑model tools to identify and remediate technical debt, resulting in 26 repos synced and over 750 daily mock calls.

AIAPI ManagementLifecycle Governance
0 likes · 28 min read
API Management Platform Construction, Lifecycle Governance, and AI‑Driven Technical Debt Mitigation
Test Development Learning Exchange
Test Development Learning Exchange
Aug 20, 2024 · Backend Development

Using pytest-mock to Mock Functions and Objects in Python Tests

This article introduces the pytest-mock plugin, explains when and how to use it for mocking functions, classes, and external services in Python tests, and provides a range of basic to advanced code examples along with important considerations and best‑practice tips.

Mockpytestpytest-mock
0 likes · 9 min read
Using pytest-mock to Mock Functions and Objects in Python Tests
Go Programming World
Go Programming World
May 12, 2024 · Backend Development

Resolving MySQL Dependencies in Go Unit Tests with Fake and Mock Objects

This article explains how to write Go unit tests for HTTP handlers that depend on MySQL by using fake implementations and the gomock library to replace the store layer, demonstrating both fake object and mock approaches, code examples, and best practices for isolating external dependencies.

FakeGoGomock
0 likes · 18 min read
Resolving MySQL Dependencies in Go Unit Tests with Fake and Mock Objects
Test Development Learning Exchange
Test Development Learning Exchange
Dec 31, 2023 · Backend Development

Comprehensive Guide to Python Testing Libraries and Utilities for API Development

This article presents a detailed overview of Python testing tools—including requests, unittest, pytest, mocking libraries, performance measurement plugins, and data generation utilities—illustrating how to write, run, and validate API tests with code examples and best‑practice explanations.

APIMockTesting
0 likes · 7 min read
Comprehensive Guide to Python Testing Libraries and Utilities for API Development
macrozheng
macrozheng
Feb 9, 2023 · Backend Development

Auto‑Generate Spring API Docs in IDEA with Apifox Helper Plugin

Learn how to install and configure the Apifox Helper plugin in IntelliJ IDEA to automatically generate, sync, and debug Java Spring API documentation, offering a zero‑intrusion alternative to Swagger with built‑in mock and testing features.

API DocumentationApifoxIDEA
0 likes · 8 min read
Auto‑Generate Spring API Docs in IDEA with Apifox Helper Plugin
DeWu Technology
DeWu Technology
Jun 20, 2022 · Frontend Development

Mooncake Data Mocking Platform – Design, Implementation, and Promotion

Mooncake is a unified data‑mocking platform that lets developers quickly generate and switch multi‑scenario mock data via a Chrome proxy plugin, online configuration service, and capture panel, supporting various client environments, and has been promoted internally through demos, documentation, and feedback loops, now serving hundreds of users and thousands of mock scenes.

Chrome ExtensionData SimulationMock
0 likes · 9 min read
Mooncake Data Mocking Platform – Design, Implementation, and Promotion
vivo Internet Technology
vivo Internet Technology
May 25, 2022 · Fundamentals

Improving C/C++ Unit Test Development Efficiency with GCC Plugins

The article proposes a GCC‑plugin‑based tool called TU that automatically extracts AST information from C/C++ source files to generate boundary unit tests, custom cases, and mocks without modifying business code, dramatically reducing the manual effort required for comprehensive test development.

ASTC++Mock
0 likes · 11 min read
Improving C/C++ Unit Test Development Efficiency with GCC Plugins
DeWu Technology
DeWu Technology
Apr 27, 2022 · Mobile Development

Automated Event Tracking Validation Platform with teslaLab for Mobile Apps

The article presents an end‑to‑end automated validation platform—combining teslaLab, Android and iOS SDKs, mock‑recording, scheduling and reporting—to reliably verify e‑commerce mobile app event tracking, address data‑source instability, streamline bug detection, and outline future cloud‑device integration.

Continuous IntegrationMockSDK
0 likes · 19 min read
Automated Event Tracking Validation Platform with teslaLab for Mobile Apps
FunTester
FunTester
Apr 26, 2022 · Backend Development

Low‑Cost, Rapid Generation of High‑Quality Test Data Using Apifox

This article explains why test data is essential, introduces the Apifox tool as a low‑cost, fast solution for creating both generic and domain‑specific test data, and provides step‑by‑step guidance on using its mock engine, custom rules, batch generation, and automation features to produce reliable testing datasets.

API TestingApifoxData Generation
0 likes · 9 min read
Low‑Cost, Rapid Generation of High‑Quality Test Data Using Apifox
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Nov 5, 2021 · Backend Development

Go Unit Testing: Concepts, Practices, and Patterns

This article introduces the testing pyramid, explains unit testing concepts, and provides a step‑by‑step guide for writing Go unit tests using the standard testing package, the AAA pattern, Testify assertions, mocks, and test suites, while highlighting the benefits of fast verification, documentation, and sustainable development.

GoMockTestify
0 likes · 18 min read
Go Unit Testing: Concepts, Practices, and Patterns
iQIYI Technical Product Team
iQIYI Technical Product Team
Aug 27, 2021 · Mobile Development

APP DIFF Automated Testing Solution for iQIYI Mobile Apps

The APP DIFF automated testing solution, presented at iQIYI’s i Technology Conference, combines deep‑link navigation, mock data services, and the AUI image‑diff algorithm within the Uiautomator2 framework to stabilize UI automation, cut execution time, achieve near‑human verification quality, and deliver significant coverage and cost savings across iQIYI mobile products.

AUIApp TestingCI/CD
0 likes · 19 min read
APP DIFF Automated Testing Solution for iQIYI Mobile Apps
Tencent Cloud Developer
Tencent Cloud Developer
Jul 27, 2021 · Backend Development

Comprehensive Guide to Go Unit Testing: Tools, Mocking, and Dependency Management

This guide explains Go’s built‑in testing framework, assertion libraries, table‑driven and sub‑tests, and demonstrates how to mock functions, structs, interfaces, databases, and Redis using tools such as ngmock, gomock, sqlmock and miniredis, while covering test setup, teardown, coverage handling, and best‑practice insights.

GoMockRedis
0 likes · 21 min read
Comprehensive Guide to Go Unit Testing: Tools, Mocking, and Dependency Management
php中文网 Courses
php中文网 Courses
Jul 9, 2021 · Backend Development

Using iszsw/mock: Installation, Annotation Routing, Mock Data Generation, and API Documentation for PHP Backend Development

This guide explains how to install the iszsw/mock library via Composer, add test controllers with annotation routing and validation, configure static resources, generate nested mock data using MockPack, and produce API documentation, providing complete code examples for PHP backend projects.

APIAnnotationMock
0 likes · 8 min read
Using iszsw/mock: Installation, Annotation Routing, Mock Data Generation, and API Documentation for PHP Backend Development
Test Development Learning Exchange
Test Development Learning Exchange
Feb 21, 2021 · Backend Development

Using Moco to Mock HTTP Services: Step‑by‑Step Examples and JMeter Integration

This tutorial explains how to download the Moco‑runner JAR, configure various mock scenarios—including GET, POST, parameterized requests, cookies, headers, and redirects—and run them from the command line or through JMeter for comprehensive API testing.

API TestingJMeterJava
0 likes · 8 min read
Using Moco to Mock HTTP Services: Step‑by‑Step Examples and JMeter Integration
macrozheng
macrozheng
Dec 9, 2020 · Backend Development

Boost Your API Workflow: A Complete Guide to Installing and Using YApi with Swagger

This tutorial walks you through installing YApi, configuring its environment, importing Swagger definitions, managing interfaces, leveraging mock data, enabling automatic sync, and handling permission management, providing a powerful, secure API documentation solution for backend developers.

API ManagementInstallationMock
0 likes · 9 min read
Boost Your API Workflow: A Complete Guide to Installing and Using YApi with Swagger