Tagged articles
93 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Jan 31, 2026 · Backend Development

7 Proven Strategies to Keep Automated Tests Low‑Cost and Resilient in High‑Change Environments

This article presents seven validated strategies—layered architecture, contract‑driven assertions, configuration‑driven data, smart mocking, impact‑based test selection, OpenAPI‑generated test skeletons, and health‑dashboard monitoring—to dramatically reduce maintenance effort and increase the robustness of automated API tests in fast‑changing projects.

API testingAutomated TestingMocking
0 likes · 9 min read
7 Proven Strategies to Keep Automated Tests Low‑Cost and Resilient in High‑Change Environments
Didi Tech
Didi Tech
Jul 10, 2025 · Backend Development

Why Unit Testing Matters: Go Basics, Mocking, and Table‑Driven Tests

This article explains why unit testing is essential for code quality, API design, and documentation, then walks through Go's built‑in testing conventions, common *testing.T methods, table‑driven test patterns, mocking with gomonkey, and best practices for writing maintainable tests.

GoMockingsoftware design
0 likes · 27 min read
Why Unit Testing Matters: Go Basics, Mocking, and Table‑Driven Tests
FunTester
FunTester
Apr 23, 2025 · Fundamentals

Mastering Mock in Go: Boost Test Stability and Speed

This article explains why mocking is essential for reliable unit testing, outlines its core benefits such as environment isolation, speed, and coverage, and provides practical Go examples—including dynamic behavior control, state verification, and using gomock—to help engineers implement robust mock strategies.

GoMock FrameworksMocking
0 likes · 10 min read
Mastering Mock in Go: Boost Test Stability and Speed
Raymond Ops
Raymond Ops
Apr 17, 2025 · Backend Development

Master HTTP Mocking in Go: httptest & gock Tutorial

This article explains how to use Go's httptest package and the gock library to mock HTTP servers and external API calls, providing step‑by‑step code examples, test case design, and practical tips for reliable backend unit testing.

Backend DevelopmentGoMocking
0 likes · 13 min read
Master HTTP Mocking in Go: httptest & gock Tutorial
FunTester
FunTester
Mar 27, 2025 · Fundamentals

What Makes a Great Test Framework? Core Skills and Key Features Explained

Designing an excellent test framework demands solid programming expertise, architectural thinking, and meticulous attention to detail, covering core capabilities such as coding standards, design patterns, extensibility, automation, CI/CD integration, reporting, performance, and continuous feedback to ensure usability, maintainability, and scalability.

AutomationMockingSoftware Engineering
0 likes · 13 min read
What Makes a Great Test Framework? Core Skills and Key Features Explained
Java Tech Enthusiast
Java Tech Enthusiast
Aug 22, 2024 · Fundamentals

Using PowerMock for Unit Testing in Java: Basics and Advanced Techniques

The article demonstrates how PowerMock can be used to unit‑test a Java FileParser class—showing basic mocks for files and streams, advanced techniques for final and static classes, and achieving full coverage—while warning that its heavy class‑loader overhead can dramatically slow large test suites and increase memory consumption.

JUnitJavaMocking
0 likes · 10 min read
Using PowerMock for Unit Testing in Java: Basics and Advanced Techniques
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 20, 2024 · Backend Development

Why Switch from PowerMock to Mockito‑Only? A Practical Migration Guide

This article explains why upgrading JDK 11 prompts the removal of the unmaintained PowerMock framework, outlines the steps to replace it with Mockito‑Only—including JUnit runner configuration, handling static, private, and final methods, multithreaded mock limitations, and performance gains—while providing code examples and migration tips.

JDK11 migrationJava TestingMocking
0 likes · 15 min read
Why Switch from PowerMock to Mockito‑Only? A Practical Migration Guide
Open Source Tech Hub
Open Source Tech Hub
Jun 21, 2024 · Backend Development

Boost PHP Testing Efficiency with Kahlan: A Complete Guide

Discover how Kahlan, a full‑featured BDD testing framework for PHP, enhances unit and integration testing with RSpec‑style syntax, built‑in code coverage, powerful stubbing, monkey‑patching, and flexible reporting, all without requiring PECL extensions.

BDDMockingcode coverage
0 likes · 5 min read
Boost PHP Testing Efficiency with Kahlan: A Complete Guide
JD Retail Technology
JD Retail Technology
May 13, 2024 · Backend Development

A Minimalist Guide to Setting Up Unit Tests in Spring Boot

This article presents a concise, beginner-friendly approach to building a Spring Boot unit testing environment using only essential Maven dependencies and test classes, covering both integration-style and pure unit test techniques, complete with annotated examples and practical testing tips.

Integration TestJUnitJava
0 likes · 9 min read
A Minimalist Guide to Setting Up Unit Tests in Spring Boot
Bilibili Tech
Bilibili Tech
May 10, 2024 · Frontend Development

Web‑Integrated Proxy Tool: Zero‑Installation, Remote Debugging and Mocking for Front‑End Development

This article presents a zero‑install, web‑integrated proxy that developers can launch via a browser link or QR code, injects an SDK to intercept network calls, offers remote debugging and UI‑driven mock rule configuration, and stores data in IndexedDB, while noting operational overhead and limited applicability.

HTTP interceptionMockingWeb Proxy
0 likes · 11 min read
Web‑Integrated Proxy Tool: Zero‑Installation, Remote Debugging and Mocking for Front‑End Development
Tencent Cloud Developer
Tencent Cloud Developer
Jan 25, 2024 · Backend Development

How to Write Testable Business Code in Go: A Practical Guide

The guide shows that by consciously designing Go data structures and function interfaces—using pure functions, parameter injection, interface abstractions, struct‑based objects, or function‑variable patterns—and avoiding init(), developers can expose and control all dependencies, making business code inherently testable and achieving high unit‑test coverage.

Backend DevelopmentGoMocking
0 likes · 17 min read
How to Write Testable Business Code in Go: A Practical Guide
HelloTech
HelloTech
Jan 4, 2024 · Frontend Development

Introduction to Front-End Unit Testing with Jest

This guide introduces front‑end unit testing with Jest, explaining TDD and BDD concepts, installation, writing simple and ES6/TypeScript tests, configuring coverage, using common matchers, and employing mock functions, timers, and module mocking to ensure reliable, maintainable code.

JestMockingTDD
0 likes · 14 min read
Introduction to Front-End Unit Testing with Jest
Architect
Architect
Dec 31, 2023 · Industry Insights

How Mooncake Automated API Documentation and Built a Metadata Hub

The article details how the Mooncake platform tackled outdated, manually‑maintained API docs by introducing naming conventions, a one‑click IntelliJ plugin, GitLab MR auto‑parsing, and a metadata center that supports debugging, mocking, and downstream consumption, saving developers hundreds of hours per release.

API documentationAutomationDebugging
0 likes · 18 min read
How Mooncake Automated API Documentation and Built a Metadata Hub
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 20, 2023 · Frontend Development

How to Mock APIs in Frontend Development Using MSW and Faker

This article explains why and how to use mock data in frontend development, compares six mainstream mock solutions, and provides a step‑by‑step guide to implementing MSW with Faker in a Vite‑based Vue 3 TypeScript project, including code examples and best‑practice recommendations.

FakerMockingTypeScript
0 likes · 15 min read
How to Mock APIs in Frontend Development Using MSW and Faker
Alibaba Cloud Developer
Alibaba Cloud Developer
May 24, 2023 · Fundamentals

Mastering Unit Testing: Practical Tips, Common Pitfalls, and Best Practices

This article explores how to effectively use unit testing in daily development, defining its purpose, debunking common misconceptions, presenting the AIR principles, offering coverage level guidelines, and sharing practical tips, code examples, and solutions for handling mocks, static classes, and integration challenges.

Mockingcode coverageunit testing
0 likes · 16 min read
Mastering Unit Testing: Practical Tips, Common Pitfalls, and Best Practices
政采云技术
政采云技术
May 17, 2023 · Frontend Development

Unlock Front‑End Quality: A Complete Guide to Jest Automated Testing

This article explains automated testing concepts, compares unit, integration, TDD and BDD approaches, shows how to write Jest test cases without a framework, configure Jest, use matchers, handle async code, hooks, mocks, timers, snapshots, DOM testing, and provides practical code examples and repository links.

JestMockingasynchronous testing
0 likes · 28 min read
Unlock Front‑End Quality: A Complete Guide to Jest Automated Testing
DevOps
DevOps
Mar 21, 2023 · Backend Development

Effective Unit Testing Strategies for Large Legacy Systems

The article shares practical techniques for improving unit test coverage in massive, low‑quality legacy codebases, including creating isolated new modules, applying test‑driven development, decoupling through design patterns, extracting interfaces, using seams, and employing mocking to overcome static dependencies.

Legacy CodeMockingdependency-injection
0 likes · 9 min read
Effective Unit Testing Strategies for Large Legacy Systems
JD Tech
JD Tech
Feb 14, 2023 · Backend Development

EasyMock Platform Overview and JSF Mock Implementation Guide

This article introduces the EasyMock platform, outlines its key capabilities for service mocking, explains the technical challenges it solves, and provides a detailed step‑by‑step walkthrough of the JSF Mock implementation—including jar acquisition, JVM class loading, dynamic proxy creation, interface registration, client invocation, and parameter matching/return logic—accompanied by code examples.

Dynamic ProxyJSFMocking
0 likes · 12 min read
EasyMock Platform Overview and JSF Mock Implementation Guide
Bilibili Tech
Bilibili Tech
Jan 20, 2023 · Backend Development

API Management and Standardization at Bilibili: Design, Automation, Versioning, and Mocking

Bilibili’s unified API management platform automates documentation generation for Go and Java services, ties each API version to specific code commits, supports version snapshots, integrates with gateways for debugging and OpenAPI export, and provides service‑level mocking, thereby standardizing microservice development and reducing cross‑team overhead.

API ManagementMicroservicesMocking
0 likes · 20 min read
API Management and Standardization at Bilibili: Design, Automation, Versioning, and Mocking
JD Retail Technology
JD Retail Technology
Jan 16, 2023 · Backend Development

EasyMock Platform Overview and JSF Mock Implementation Techniques

This article introduces the EasyMock platform, explains its role in providing JSF and HTTP mock services for development and testing, outlines its architecture and capabilities, and details the step‑by‑step technical implementation of JSF Mock including jar downloading, JVM class loading, dynamic proxy creation, registration, client invocation, parameter matching, and response deserialization.

BackendDynamic ProxyJSF
0 likes · 11 min read
EasyMock Platform Overview and JSF Mock Implementation Techniques
DeWu Technology
DeWu Technology
Dec 23, 2022 · Frontend Development

Frontend Unit Testing as Documentation: Challenges and Practices

The team combats outdated documentation and costly front‑end maintenance by treating unit tests for the use‑case layer as living documentation, using BDD‑style Given‑When‑Then tests that assert only observable behavior, which improves code readability, eases onboarding, and provides a reliable safety net for future changes.

BDDClean ArchitectureJavaScript
0 likes · 13 min read
Frontend Unit Testing as Documentation: Challenges and Practices
DaTaobao Tech
DaTaobao Tech
Dec 9, 2022 · Fundamentals

Frida-gum Based Non-intrusive C++ Mock Framework

This open‑source C++ mock framework leverages Frida‑gum to replace any function—including static, member, virtual, and library calls—at runtime without source changes, offering simple MOCK and MOCK_RETURN macros, call‑count expectations, automatic scope‑based rollback, and cross‑platform support for reliable, non‑intrusive unit testing.

CFridaHook
0 likes · 11 min read
Frida-gum Based Non-intrusive C++ Mock Framework
Ant R&D Efficiency
Ant R&D Efficiency
Sep 20, 2022 · Backend Development

Guidelines for Writing Unit Tests with Mockito and Test Case Design in SpringBoot

The article outlines how to design robust SpringBoot unit tests by first mastering business flows and external dependencies, preparing isolated test data, using Mockito’s @Mock/@MockBean and @Spy/@SpyBean correctly—including proper stubbing techniques—and applying best‑practice rules and the ACTS 2.0 framework for data‑driven, coverage‑verified testing.

MockingMockitoSoftware Testing
0 likes · 8 min read
Guidelines for Writing Unit Tests with Mockito and Test Case Design in SpringBoot
Continuous Delivery 2.0
Continuous Delivery 2.0
Apr 6, 2022 · Fundamentals

How to Prevent Flaky Unit Tests by Managing Test Preconditions

Unstable test cases, caused by shared resources and unchecked assumptions, can mislead developers, hide real bugs, and lead to unfair blame, so this article explains why preconditions must be verified, demonstrates flaky test examples, and offers practical strategies such as resource cleanup, unique test resources, and mock file systems to achieve reliable testing.

MockingSoftware Testingflaky-tests
0 likes · 4 min read
How to Prevent Flaky Unit Tests by Managing Test Preconditions
DaTaobao Tech
DaTaobao Tech
Mar 24, 2022 · Fundamentals

Introduction to the Spock Testing Framework for Java and Groovy

Spock is an open‑source Java/Groovy testing framework that blends JUnit‑style structure with a concise Groovy DSL, offering data‑driven “given‑expect‑where” tests, straightforward mocking and property injection, Maven‑based setup, and seamless PowerMock integration for static‑method mocking, making it a powerful alternative to traditional unit‑test tools.

GroovyJavaMocking
0 likes · 17 min read
Introduction to the Spock Testing Framework for Java and Groovy
DevOps
DevOps
Mar 10, 2022 · Fundamentals

Five Common Pitfalls in Unit Testing and How to Avoid Them

The article explains why unit tests are essential for software quality, identifies five typical pitfalls—testing per function instead of per feature, chasing code‑coverage metrics, over‑reliance on mocks, writing tests that never fail, and handling nondeterministic behavior—and provides practical recommendations to overcome each issue.

MockingSoftware qualitycode coverage
0 likes · 11 min read
Five Common Pitfalls in Unit Testing and How to Avoid Them
Tencent Cloud Developer
Tencent Cloud Developer
Feb 16, 2022 · Backend Development

Table-Driven Testing in Go: Concepts, Examples, and Advanced Techniques

The article explains Go’s table‑driven testing pattern, showing how separating test data into a slice of structs simplifies test code, improves quality, and enables subtests, parallel execution, assertions, mocking, and custom templates, illustrated with a GetWeekDay example and advanced techniques.

GoMockingParallel Testing
0 likes · 14 min read
Table-Driven Testing in Go: Concepts, Examples, and Advanced Techniques
FunTester
FunTester
Dec 14, 2021 · Fundamentals

Challenges and Solutions for Unit Test Coverage in Spring Boot: Mocking Static Methods with Spock, Mockito, and PowerMock

The author describes encountering quality‑assurance challenges in Spring Boot, revisiting unit‑testing frameworks like Spock, Mockito, and PowerMock, struggling with static‑method mocking, and ultimately adopting a "reset and rebuild" strategy to resolve dependency conflicts and improve test coverage.

MockingMockitoPowerMock
0 likes · 5 min read
Challenges and Solutions for Unit Test Coverage in Spring Boot: Mocking Static Methods with Spock, Mockito, and PowerMock
Alibaba Cloud Native
Alibaba Cloud Native
Dec 10, 2021 · Cloud Native

Master Dubbo Service Governance: Dynamic Routing, Config & Mocking

This guide explains how to use Dubbo's cloud‑native features—service listings, dynamic routing (conditional, tag, and mesh), runtime configuration, testing, and mock support—providing step‑by‑step examples, YAML definitions, and Maven snippets for effective service governance.

Cloud NativeMockingService Mesh
0 likes · 6 min read
Master Dubbo Service Governance: Dynamic Routing, Config & Mocking
Alibaba Cloud Developer
Alibaba Cloud Developer
Oct 20, 2021 · Backend Development

How JSON Serialization Can Supercharge Your Java Unit Tests

This article explains how leveraging JSON serialization can dramatically simplify and accelerate Java unit test development by reducing boilerplate code for data mocking and verification, offering practical examples, naming conventions, resource organization, and integration tips for backend projects.

JSONJavaMocking
0 likes · 37 min read
How JSON Serialization Can Supercharge Your Java Unit Tests
FunTester
FunTester
Oct 9, 2021 · Fundamentals

Five Common Traps That Undermine Effective Unit Tests and How to Fix Them

This article explains five typical pitfalls that make unit tests ineffective—testing per function instead of behavior, chasing code‑coverage, over‑reliance on mocks, writing tests that never fail, and allowing nondeterminism—while offering practical guidance on how to avoid each issue.

MockingSoftware Testingcode coverage
0 likes · 11 min read
Five Common Traps That Undermine Effective Unit Tests and How to Fix Them
NiuNiu MaTe
NiuNiu MaTe
Sep 28, 2021 · Backend Development

Master Go Unit Testing: From Basics to Mocking with GoConvey

This article explains what unit testing is, shows how to write Go unit tests using the testing package, demonstrates more expressive assertions with GoConvey, and introduces mock creation with mockery, providing practical code examples and best‑practice tips for backend developers.

GoGoConveyMocking
0 likes · 7 min read
Master Go Unit Testing: From Basics to Mocking with GoConvey
Meituan Technology Team
Meituan Technology Team
Aug 12, 2021 · Backend Development

Spock Testing Framework: BDD, Mocking, and Unit Test Practices for Java/Groovy Backend Development

The article presents a comprehensive guide to using the Spock testing framework for Java and Groovy backend development, illustrating its BDD‑style DSL, data‑driven tables, integrated mocking (including static methods via PowerMock), exception verification, in‑memory DAO testing, and enhanced coverage reporting compared to JUnit.

BDDGroovyJava
0 likes · 35 min read
Spock Testing Framework: BDD, Mocking, and Unit Test Practices for Java/Groovy Backend Development
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Jun 18, 2021 · Fundamentals

Implementing Unit Testing for the PC Teacher Desktop Application Using GoogleTest and Mocking

This article describes how the PC teacher desktop client adopts a layered MVL architecture, introduces unit testing with GoogleTest and GoogleMock, explains the underlying TEST and RUN_ALL_TESTS macro mechanisms, demonstrates mock view implementation, and shows how code coverage is measured to achieve targeted test coverage levels.

C++MockingSoftware Engineering
0 likes · 15 min read
Implementing Unit Testing for the PC Teacher Desktop Application Using GoogleTest and Mocking
Alibaba Cloud Developer
Alibaba Cloud Developer
May 18, 2021 · Backend Development

Mastering Java Unit Testing: A Deep Dive into Mockito & PowerMock

This comprehensive guide walks Java developers through the principles and practical steps of writing high‑coverage unit tests using Mockito and PowerMock, covering framework basics, Maven dependencies, typical service code, test case structure, mocking techniques, verification methods, exception handling, and common pitfalls with solutions.

JavaMockingMockito
0 likes · 44 min read
Mastering Java Unit Testing: A Deep Dive into Mockito & PowerMock
DevOps
DevOps
May 13, 2021 · Fundamentals

Effective Interface Testing: Principles, Layers, and Practical Tips

This article explains why comprehensive interface testing is essential for software quality, outlines testing layers such as unit, module, and entry (interface) testing, details core testing principles and best‑practice guidelines, and provides practical advice on test code structure, efficiency, framework selection, and coverage to ensure reliable, maintainable systems.

MockingSoftware qualityinterface testing
0 likes · 9 min read
Effective Interface Testing: Principles, Layers, and Practical Tips
Alibaba Cloud Developer
Alibaba Cloud Developer
May 11, 2021 · Backend Development

Mastering Java Unit Testing: A Deep Dive into Mockito & PowerMock

This comprehensive guide walks you through writing effective Java unit tests, covering test framework basics, Maven dependencies, typical code examples, step‑by‑step test case creation, mocking techniques with Mockito and PowerMock, verification strategies, handling special cases, and best practices for achieving high coverage.

JUnitJavaMocking
0 likes · 48 min read
Mastering Java Unit Testing: A Deep Dive into Mockito & PowerMock
Ops Development Stories
Ops Development Stories
May 2, 2021 · Backend Development

Mastering Unit Testing with TestNG and PowerMock in Spring Boot

This article explains unit testing concepts, introduces TestNG and PowerMock frameworks for Spring Boot, details common annotations, provides Maven dependency snippets and comprehensive Java test examples, and demonstrates advanced mocking techniques, parameterized tests, and assertion strategies to improve code reliability and coverage.

JavaMockingPowerMock
0 likes · 14 min read
Mastering Unit Testing with TestNG and PowerMock in Spring Boot
Continuous Delivery 2.0
Continuous Delivery 2.0
Apr 21, 2021 · Fundamentals

Don’t Mock Types You Don’t Own: Risks and Better Alternatives

The article explains why mocking external components you don’t control can introduce maintenance problems, such as hidden bugs and upgrade difficulties, and suggests using real implementations, library‑provided fakes, or wrapper classes instead, while offering code examples and practical guidance.

JavaMockingTest Doubles
0 likes · 5 min read
Don’t Mock Types You Don’t Own: Risks and Better Alternatives
Continuous Delivery 2.0
Continuous Delivery 2.0
Apr 19, 2021 · Fundamentals

The Dangers of Overusing Mocks in Unit Testing

Overusing mocks in unit tests can make test code harder to understand, harder to maintain, and give a false sense of correctness, so developers should recognize signs of excessive mocking and consider alternatives such as hermetic servers or fake objects.

MockingSoftware Testingtest design
0 likes · 4 min read
The Dangers of Overusing Mocks in Unit Testing
Amap Tech
Amap Tech
Mar 12, 2021 · Backend Development

PowerMock and Mockito: Comprehensive Guide to Java Unit Testing and Mocking Techniques

This comprehensive guide walks Java developers through setting up PowerMock and Mockito, demonstrates creating and spying on mocks, stubbing methods, using parameter matchers, verifying interactions—including static and private members—and explains essential annotations and best‑practice principles for robust, maintainable unit tests.

JavaMockingMockito
0 likes · 24 min read
PowerMock and Mockito: Comprehensive Guide to Java Unit Testing and Mocking Techniques
FunTester
FunTester
Feb 23, 2021 · Backend Development

Improving Software Testability: Practical Tips for Captcha Handling, Data Generation, Mocking, and Test Code Deployment

This article shares practical techniques to enhance software testability, covering strategies for bypassing graphical and SMS captchas, efficient test data creation, automated and brute‑force data injection, mocking services, and deploying test‑specific code without affecting production environments.

Backend testingCaptchaData Generation
0 likes · 11 min read
Improving Software Testability: Practical Tips for Captcha Handling, Data Generation, Mocking, and Test Code Deployment
DeWu Technology
DeWu Technology
Jan 29, 2021 · Backend Development

Non‑Intrusive HTTP Mock Platform (Hulk): Architecture, Implementation, and Deployment

Hulk is a non‑intrusive HTTP mock platform built with Django, mitmproxy, Vue, MongoDB and MySQL that lets teams mock client‑side, gateway-level and inter‑service APIs via configurable responses, without modifying production code, thereby reducing test‑data creation effort, stabilizing automation and improving overall testing efficiency.

DeploymentDjangoHTTP
0 likes · 14 min read
Non‑Intrusive HTTP Mock Platform (Hulk): Architecture, Implementation, and Deployment
Programmer DD
Programmer DD
Jan 1, 2021 · Backend Development

How TestableMock Empowers Java Unit Testing of Private Members and Void Methods

TestableMock is a Java unit‑testing helper that lets developers access private fields and methods, quickly mock any method call, and effectively test void methods by providing annotations and utility classes, with detailed code examples and usage guidelines for both Java and Kotlin projects.

JavaMockingPrivate Access
0 likes · 12 min read
How TestableMock Empowers Java Unit Testing of Private Members and Void Methods
FunTester
FunTester
Aug 5, 2020 · Backend Development

Mocking Void Methods with Mockito: A Complete Step‑by‑Step Guide

This article explains how to use Mockito's doNothing, doAnswer, doThrow, and doCallRealMethod to mock void methods in Java, demonstrating parameter verification, argument capture, and real‑method invocation with detailed code examples and reasoning behind each approach.

JUnitJavaMocking
0 likes · 6 min read
Mocking Void Methods with Mockito: A Complete Step‑by‑Step Guide
Tencent Music Tech Team
Tencent Music Tech Team
Jun 12, 2020 · Frontend Development

Using Jest for Front-End Unit Testing and Coverage

The article explains how to set up Jest for front‑end unit testing, demonstrates basic test writing, async handling, hooks, snapshot and React component testing, shows coverage configuration and thresholds, compares Jest’s built‑in features to Mocha’s limitations, and offers tips on concurrency, mocking, and test‑driven development.

JavaScriptJestMocking
0 likes · 21 min read
Using Jest for Front-End Unit Testing and Coverage
FunTester
FunTester
May 30, 2020 · Backend Development

Master PowerMock: Unit Test Private, Final, Static and Constructor Methods in Java

This guide explains why unit testing matters, compares Java testing tools, introduces PowerMock’s capabilities, details essential annotations, shows how to configure dependencies, and provides step‑by‑step code examples for mocking public, final, static, private, constructor, field and superclass methods.

JUnitJavaMocking
0 likes · 10 min read
Master PowerMock: Unit Test Private, Final, Static and Constructor Methods in Java
Continuous Delivery 2.0
Continuous Delivery 2.0
May 22, 2020 · Fundamentals

Avoiding Flaky Tests: Focused Test Design and Proper Use of Mocks

This article explains why flaky tests harm development, demonstrates how shared resources cause instability, and provides practical guidelines—such as using exclusive resources, refactoring for dependency injection, writing one‑scenario tests, and avoiding verification of non‑state‑changing calls—to create reliable, focused unit tests.

Mockingflaky-testsunit testing
0 likes · 7 min read
Avoiding Flaky Tests: Focused Test Design and Proper Use of Mocks
JD Retail Technology
JD Retail Technology
May 6, 2020 · Backend Development

JMock: A Zero‑Configuration Mocking Platform for Backend Service Dependencies

JMock is a zero‑configuration, intelligent mocking platform that simplifies service dependency testing for backend applications by providing Maven‑based SDK integration, automatic environment detection, configurable mock switches, diverse data sources, and automatic data generation to accelerate development and reduce testing overhead.

AutomationBackendJava
0 likes · 12 min read
JMock: A Zero‑Configuration Mocking Platform for Backend Service Dependencies
FunTester
FunTester
Apr 28, 2020 · Backend Development

How to Mock System.in and System.out for Java Unit Tests

This guide shows how to replace System.in and System.out with in‑memory streams during unit testing, provides reusable helper classes for setting and restoring these streams, and includes a complete example demonstrating input simulation and output capture in Java.

IO StreamsJavaMocking
0 likes · 5 min read
How to Mock System.in and System.out for Java Unit Tests
FunTester
FunTester
Mar 1, 2020 · Fundamentals

Understanding Unit Testing: Principles, Practices, and Automation

This article explains the fundamentals of unit testing, covering its definition, core concepts, essential principles, practical techniques such as mocking, and its role in test automation and continuous integration within modern agile development.

MockingSoftware qualitycontinuous integration
0 likes · 7 min read
Understanding Unit Testing: Principles, Practices, and Automation
JD Retail Technology
JD Retail Technology
Feb 19, 2020 · Backend Development

MockRpc Platform: Zero‑Intrusion Mocking for Front‑Middle‑End Decoupling in JD Retail

The article introduces the MockRpc platform, which uses Spring‑based extensions and a mock server to fully decouple front‑end services from middle‑end services in a micro‑service architecture, enabling zero‑intrusion testing, configurable mock data, and improved development efficiency for JD Retail.

DevOpsMicroservicesMocking
0 likes · 11 min read
MockRpc Platform: Zero‑Intrusion Mocking for Front‑Middle‑End Decoupling in JD Retail
AntTech
AntTech
Dec 20, 2019 · Frontend Development

From R&D Pain Points to Mini‑Program Engineering: Stages, Tools, and Best Practices

This article outlines the evolution of mini‑program development at Ant Group, describing three engineering stages, essential tooling such as state management, Datahub mocking, monitoring, internationalization, component libraries, and SubApp architecture to bring mini‑programs closer to mainstream front‑end engineering practices.

MockingState Managementi18n
0 likes · 10 min read
From R&D Pain Points to Mini‑Program Engineering: Stages, Tools, and Best Practices
转转QA
转转QA
Nov 22, 2019 · Backend Development

Mocking Third‑Party Payment Services with Java Instrumentation for Reliable Testing

This article presents a comprehensive approach to simulate third‑party payment scenarios by using Java bytecode instrumentation and DNS redirection, enabling reliable testing of payment‑related business logic without modifying production services, while reducing deployment and development costs.

BackendJava InstrumentationMocking
0 likes · 6 min read
Mocking Third‑Party Payment Services with Java Instrumentation for Reliable Testing
Ctrip Technology
Ctrip Technology
Aug 14, 2019 · Backend Development

Full-Link Mocking: Technical Background, Implementation Details, and Open Issues

The article introduces the concept of full‑link mocking for complex, multi‑dependency applications, explains its technical background, describes the implementation architecture and performance considerations, and discusses practical challenges such as duplicate calls, cache consistency, and HTTP 302 forwarding.

BackendCacheMocking
0 likes · 9 min read
Full-Link Mocking: Technical Background, Implementation Details, and Open Issues
Youzan Coder
Youzan Coder
May 24, 2019 · Backend Development

How to Build a Powerful Mock Plugin for Dubbo Services in CI Tests

This article explains how to design and implement a mock plugin for Dubbo-based services, enabling stable CI integration, multi‑service mocking, per‑test case responses, custom annotations, and service‑chain routing, with detailed code examples and deployment steps.

CIDubboJava
0 likes · 19 min read
How to Build a Powerful Mock Plugin for Dubbo Services in CI Tests
Programmer DD
Programmer DD
Oct 23, 2018 · Backend Development

How to Mock External Services and Encrypt Configs in SpringBoot

This article demonstrates practical SpringBoot techniques for masking external dependencies by mocking beans directly in the container and securing configuration values with Jasypt encryption, enabling local debugging without full service startup and protecting sensitive credentials.

Bean ReplacementConfiguration EncryptionJava
0 likes · 8 min read
How to Mock External Services and Encrypt Configs in SpringBoot
Qunar Tech Salon
Qunar Tech Salon
Oct 17, 2018 · Frontend Development

Jest Unit Testing Guide for Front-End Development

This article provides a comprehensive guide to using Jest for front‑end unit testing, covering the lack of tests, benefits, installation, basic assertions, matchers, asynchronous testing, lifecycle hooks, mock functions, module mocking, snapshot testing, and best practices to improve code quality and development efficiency.

JavaScriptJestMocking
0 likes · 15 min read
Jest Unit Testing Guide for Front-End Development
Java Captain
Java Captain
Oct 16, 2018 · Backend Development

Practical SpringBoot Tips: Mocking External Dependencies and Encrypting Configuration

This article shares practical SpringBoot techniques for locally mocking external service dependencies and encrypting configuration properties, detailing step-by-step bean replacement using PowerMockito, configuration encryption with Jasypt, and accompanying code examples for seamless development without starting full distributed services.

JavaMockingSpringBoot
0 likes · 8 min read
Practical SpringBoot Tips: Mocking External Dependencies and Encrypting Configuration
Alibaba Cloud Native
Alibaba Cloud Native
Sep 6, 2018 · Backend Development

How PouchContainer Enforces Code Style and Unit Testing in Go

This article explains how the PouchContainer project automates code‑style enforcement and comprehensive Golang unit testing using tools like golint, gometalinter, shellcheck, markdownlint, table‑driven tests, and mock implementations, integrating them into CI pipelines to ensure reliable releases.

GolangMockingcode style
0 likes · 16 min read
How PouchContainer Enforces Code Style and Unit Testing in Go
Ctrip Technology
Ctrip Technology
Aug 21, 2018 · Backend Development

Testing Strategies and Tools for Microservice Architecture

This article explains how microservice architecture transforms testing by classifying five test types—unit, integration, component, contract, and end‑to‑end—introduces Ctrip's automated comparison tool that replays production logs with mock services, and highlights its design goals, implementation details, and advantages for improving test coverage and reliability.

AutomationMockingcontract testing
0 likes · 8 min read
Testing Strategies and Tools for Microservice Architecture
360 Tech Engineering
360 Tech Engineering
Jun 21, 2018 · Backend Development

Unit Testing in PHP with PHPSpec: Principles, Setup, and Practical Examples

This article explains why unit testing is essential for PHP projects, introduces SOLID design principles, shows how to choose and install PHPSpec, demonstrates writing specifications, mocking, argument matching, exception testing, and configuring code‑coverage reports, all with concrete code examples.

MockingPHPSpecSOLID
0 likes · 10 min read
Unit Testing in PHP with PHPSpec: Principles, Setup, and Practical Examples
JD Retail Technology
JD Retail Technology
Aug 11, 2017 · Mobile Development

iOS Mocker: A Server‑Side Mock Service for Mobile Development at JD

The article introduces JD’s iOS Mocker, a server‑side mock service that decouples client development from backend progress, provides comprehensive mock data for all shopping‑flow interfaces, improves testing efficiency, ensures UI robustness, and outlines its architecture, usage workflow, and future extensions.

APIMobile DevelopmentMocking
0 likes · 7 min read
iOS Mocker: A Server‑Side Mock Service for Mobile Development at JD
Tencent TDS Service
Tencent TDS Service
Sep 22, 2016 · Mobile Development

Master Android Unit Testing: Why It Matters and How to Do It

This article explains the importance of unit testing in Android development, outlines why developers should invest time in it, and provides a step‑by‑step guide on writing effective Android unit tests using JUnit, Mockito, Dagger2, and Robolectric, along with practical tips, CI integration, and common pitfalls.

AndroidCIDagger2
0 likes · 23 min read
Master Android Unit Testing: Why It Matters and How to Do It
Node Underground
Node Underground
Sep 12, 2016 · Databases

How to Keep Your Database Clean During Integration Tests?

When writing integration tests that involve database operations, developers must ensure that test execution does not pollute the original data, and the article explores strategies such as using transaction rollbacks, recreating databases, and mocking database interfaces to maintain data integrity.

Backend DevelopmentMockingdatabase
0 likes · 2 min read
How to Keep Your Database Clean During Integration Tests?
360 Quality & Efficiency
360 Quality & Efficiency
Jul 22, 2016 · Mobile Development

Mobile UI Automation Practices and Tools: WalmartLabs, Taobao Performance Testing, and More

The article presents a comprehensive overview of mobile UI automation and performance testing practices, covering WalmartLabs' Appium-based framework, Taobao's SDK timing and frame‑drop analysis, quality assurance systems, crash analysis, static code scanning, AppCrawler, Macaca, MockServer usage, and Docker‑based test environments.

AppiumDockerMobile Automation
0 likes · 8 min read
Mobile UI Automation Practices and Tools: WalmartLabs, Taobao Performance Testing, and More