Tagged articles
314 articles
Page 2 of 4
Continuous Delivery 2.0
Continuous Delivery 2.0
Aug 22, 2023 · Fundamentals

Why End‑to‑End Testing Strategies Often Fail and How to Build Effective Feedback Loops

The article examines why end‑to‑end testing strategies frequently break in practice, illustrates common pitfalls through a realistic scenario, and proposes a more reliable testing pyramid that emphasizes fast, reliable, isolated unit and integration tests while establishing quick feedback loops for developers.

End-to-EndFeedback LoopTest Strategy
0 likes · 10 min read
Why End‑to‑End Testing Strategies Often Fail and How to Build Effective Feedback Loops
21CTO
21CTO
Aug 1, 2023 · Artificial Intelligence

How to Set Up and Master CodeGPT in VS Code for AI-Powered Coding

This guide walks you through installing the CodeGPT extension in Visual Studio Code, configuring your OpenAI API key, and using its features—code generation, explanation, refactoring, and unit test creation—to boost productivity with AI-assisted programming.

AI CodingCode GenerationCodeGPT
0 likes · 8 min read
How to Set Up and Master CodeGPT in VS Code for AI-Powered Coding
DataFunTalk
DataFunTalk
Jul 23, 2023 · Backend Development

Rearchitecting the Advertising AB Testing Platform: Service Decomposition, Data Modeling, DAG Scheduling, and DDD Practices

The article describes how Volcano Engine's DataTester team refactored the advertising AB testing platform by splitting services, redesigning the data model with MySQL and ClickHouse, introducing DAG‑based scheduling and a time‑wheel algorithm, and applying domain‑driven design and rigorous unit testing to improve stability, scalability, and maintainability.

AB testingDAG schedulingDomain-Driven Design
0 likes · 16 min read
Rearchitecting the Advertising AB Testing Platform: Service Decomposition, Data Modeling, DAG Scheduling, and DDD Practices
FunTester
FunTester
Jun 26, 2023 · Fundamentals

Why Unit Testing Matters: From Test Pyramids to Agile Practices

This article explains the concepts of narrow and broad unit testing, the shift‑left and shift‑right testing strategies, compares Mike Cohn’s and Google’s test pyramids, discusses the limitations of unit testing, and shows how unit testing fits into traditional and agile development models.

Software TestingTDDagile
0 likes · 10 min read
Why Unit Testing Matters: From Test Pyramids to Agile Practices
Amap Tech
Amap Tech
Jun 15, 2023 · Backend Development

Golang Unit Testing Plugin: Design, Implementation, and Best Practices

The Golang Unit Testing Plugin 3.0 unifies scripts, uses containerized resources, supports all Go versions, provides precise AST‑based incremental coverage, and generates detailed HTML reports, enabling developers to select the plugin in Aone Lab and automatically compile, test, collect coverage, and upload results, dramatically reducing integration effort and improving CI efficiency across dozens of applications.

Golangci/cdcoverage
0 likes · 8 min read
Golang Unit Testing Plugin: Design, Implementation, and Best Practices
政采云技术
政采云技术
Jun 6, 2023 · Mobile Development

Improving Flutter Unit Testing: Practices, Tools, and Common Issues

This article shares a team's experience of establishing and refining Flutter unit testing across multiple apps, covering preparation, tooling, coverage improvement, effective test writing, efficiency tricks, and a detailed FAQ of common pitfalls and solutions.

Mobile Developmentci/cdcoverage
0 likes · 17 min read
Improving Flutter Unit Testing: Practices, Tools, and Common Issues
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
360 Tech Engineering
360 Tech Engineering
May 9, 2023 · Frontend Development

Why Use AI to Write Unit Tests for React Hooks

This article explains the motivation for writing unit tests for shared React hook modules, demonstrates how an AI assistant in the Cursor IDE can generate Jest test cases from a repository, and details the step‑by‑step process of configuring the environment, fixing failing tests, and reflecting on AI's current limitations.

AIJestReact
0 likes · 10 min read
Why Use AI to Write Unit Tests for React Hooks
DeWu Technology
DeWu Technology
Apr 3, 2023 · Artificial Intelligence

Optimizing and Testing Java Code with ChatGPT: A Step-by-Step Guide

This guide shows how to prompt ChatGPT as a Java developer, transform a flawed if‑else calculator into a clean Strategy‑pattern implementation, and write comprehensive JUnit tests, while warning about code‑security risks when using large language models.

ChatGPTCode OptimizationJava
0 likes · 8 min read
Optimizing and Testing Java Code with ChatGPT: A Step-by-Step Guide
Continuous Delivery 2.0
Continuous Delivery 2.0
Mar 23, 2023 · Fundamentals

Practical Guidelines for Effective Unit Testing

This article offers pragmatic, engineering‑focused advice on why unit testing matters, what makes a good test, when to write or skip tests, who should write them, and how to structure tests using the classic arrange‑act‑assert pattern.

Software Testingcode qualitytest‑driven development
0 likes · 7 min read
Practical Guidelines for Effective Unit Testing
ELab Team
ELab Team
Mar 22, 2023 · Frontend Development

Mastering Component Unit Testing with Jest and Testing Library

This article explains why unit testing is essential for reusable components, introduces Jest fundamentals, demonstrates how to write and run tests with code examples, and shows how to enhance UI component testing using @testing-library/react, @testing-library/user-event, and @testing-library/jest-dom, providing a complete workflow for reliable front‑end development.

JestMockfrontend
0 likes · 12 min read
Mastering Component Unit Testing with Jest and Testing Library
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
政采云技术
政采云技术
Feb 7, 2023 · Fundamentals

Comprehensive Guide to Unit Testing with the Spock Framework

This article provides an in‑depth tutorial on unit testing using Spock, covering its advantages over JUnit, core concepts like specifications, fixtures, feature methods, data‑driven testing, mock and stub techniques, interaction constraints, and tooling for automated test generation, all illustrated with Groovy and Java code examples.

Data‑Driven TestingGroovyJava
0 likes · 22 min read
Comprehensive Guide to Unit Testing with the Spock Framework
Alibaba Cloud Developer
Alibaba Cloud Developer
Jan 30, 2023 · Fundamentals

Mastering Effective Unit Tests: Principles, Practices, and Common Pitfalls

This article explains why unit tests should focus on verifying behavior rather than merely increasing coverage, outlines essential testing principles such as AIR, FIRST, and ASCII, provides concrete Java examples for writing, validating, and asserting tests, and offers detailed guidance on handling exceptions and method‑call verification to avoid ineffective testing.

Mockitocode coveragemethod verification
0 likes · 47 min read
Mastering Effective Unit Tests: Principles, Practices, and Common Pitfalls
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
Efficient Ops
Efficient Ops
Sep 27, 2022 · Operations

How a Bank’s DevOps Team Boosted Code Quality with Unit Testing and Automation

The article details how China Construction Bank's software development center enhanced code quality and accelerated delivery by integrating unit testing, test‑driven development, mutation testing, automated test code generation, code‑style scanning, and shared template mechanisms within a mature DevOps pipeline.

AutomationCode ScanningDevOps
0 likes · 8 min read
How a Bank’s DevOps Team Boosted Code Quality with Unit Testing and Automation
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
Taobao Frontend Technology
Taobao Frontend Technology
Sep 14, 2022 · Frontend Development

Mastering Frontend Automated Testing: From Unit to E2E

This comprehensive guide explains why automated testing is essential for frontend development, outlines the differences between unit, integration, component, and end‑to‑end testing, and recommends practical tools and frameworks such as Jest, Vitest, Testing Library, Cypress, Playwright, and Puppeteer.

CypressJeste2e
0 likes · 21 min read
Mastering Frontend Automated Testing: From Unit to E2E
Xianyu Technology
Xianyu Technology
Sep 6, 2022 · Fundamentals

Effective Unit Testing: Principles, Practices, and Design Guidelines

Effective unit testing—fast, readable, isolated, deterministic, and focused on a single behavior—relies on disciplined design, proper use of test doubles, the test‑pyramid hierarchy, meaningful assertions, continuous code‑review feedback, and mindful coverage, enabling safe refactoring, reduced maintenance cost, and higher confidence in software changes.

Software Testingcode qualitytest automation
0 likes · 15 min read
Effective Unit Testing: Principles, Practices, and Design Guidelines
Architecture Breakthrough
Architecture Breakthrough
Aug 31, 2022 · Backend Development

How to Drive Effective Unit Testing and API Test Strategies for Managers

The article explains why unit testing matters, why managers should focus on higher‑level API tests rather than method‑by‑method coverage, and provides practical checkpoints for transaction, query, and compensation interfaces to help technical leaders promote a results‑oriented testing culture without overwhelming developers.

API testingBackend DevelopmentTest Strategy
0 likes · 5 min read
How to Drive Effective Unit Testing and API Test Strategies for Managers
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 25, 2022 · Fundamentals

Mastering Effective Unit Tests: Principles, Practices, and Design Tips

This article explains what unit testing is, why it matters, the characteristics of good tests, practical guidelines for writing effective tests in Flutter, test pyramid concepts, and how to integrate testing into design, refactoring, and team culture to achieve reliable, maintainable software.

Software Testingflutter testingtest automation
0 likes · 19 min read
Mastering Effective Unit Tests: Principles, Practices, and Design Tips
ITPUB
ITPUB
Jul 23, 2022 · Fundamentals

Turn Every Issue into a Targeted Unit Test with Automated Scripts

This article explains how the ICBU low‑code platform’s rendering engine achieves high test coverage by linking each issue to a dedicated unit test and demo, using custom npm scripts, pre‑build cleanup, and a traceable changelog to improve code stability.

Software qualitycontinuous integrationfrontend
0 likes · 8 min read
Turn Every Issue into a Targeted Unit Test with Automated Scripts
ELab Team
ELab Team
Jul 13, 2022 · Frontend Development

Mastering Front‑End Testing: From Basics to Building Your Own Test Runner

This article explains software testing fundamentals, classifies test methods, outlines general testing principles, dives into front‑end testing types and popular frameworks, provides code snippets for a minimal test runner, and compares TDD and BDD approaches, offering a comprehensive guide for developers.

BDDSoftware TestingTDD
0 likes · 24 min read
Mastering Front‑End Testing: From Basics to Building Your Own Test Runner
FunTester
FunTester
Jun 21, 2022 · Fundamentals

Comparing TestNG and JUnit: Features, Annotations, and Usage in Java Unit Testing

This article explains unit testing concepts, outlines the differences between TestNG and JUnit—including test suite configuration, annotations, grouping, parameterization, dependency handling, exception and timeout testing—and provides code examples to help developers choose the most suitable Java testing framework.

JUnitJavaTestNG
0 likes · 11 min read
Comparing TestNG and JUnit: Features, Annotations, and Usage in Java Unit Testing
ByteFE
ByteFE
Jun 20, 2022 · Frontend Development

An Introduction to Frontend Testing: Types, Tools, and Best Practices

This article explains what frontend testing is, why it is essential, outlines the various testing types such as unit, integration, end‑to‑end, acceptance, visual regression, accessibility, performance and cross‑browser testing, recommends tools like Jest and Puppeteer, and offers practical advice for building an effective testing strategy.

AutomationJeste2e
0 likes · 22 min read
An Introduction to Frontend Testing: Types, Tools, and Best Practices
Ctrip Technology
Ctrip Technology
Jun 16, 2022 · Mobile Development

MMKV‑Kotlin: A Kotlin Multiplatform Key‑Value Storage Library – Design, Usage, Testing and Maven Publishing

This article introduces MMKV‑Kotlin, a Kotlin Multiplatform wrapper for Tencent's high‑performance MMKV key‑value storage, covering its background, simple integration steps, architectural decisions, platform‑specific implementations, comprehensive unit and instrumented testing, and the process of publishing the library to Maven Central.

AndroidKotlin MultiplatformMMKV
0 likes · 22 min read
MMKV‑Kotlin: A Kotlin Multiplatform Key‑Value Storage Library – Design, Usage, Testing and Maven Publishing
High Availability Architecture
High Availability Architecture
Jun 15, 2022 · Backend Development

Exploring JUnit Runners: Suite, Theories, Categories, Enclosed, Parameterized and More

This article provides a comprehensive guide to JUnit runners, detailing the purpose and usage of Suite, Theories, Categories, Enclosed, Parameterized, IgnoredClassRunner and other executors, accompanied by code examples and execution results to help developers apply flexible unit testing strategies in Java projects.

JUnitJavaRunner
0 likes · 12 min read
Exploring JUnit Runners: Suite, Theories, Categories, Enclosed, Parameterized and More
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
JD Tech
JD Tech
May 25, 2022 · Backend Development

A Comprehensive Guide to JUnit Runners: Suite, RunWith, BlockJUnit4ClassRunner, Theories, Categories, Parameterized and More

This article explains the purpose and usage of various JUnit runners—including Suite, RunWith, BlockJUnit4ClassRunner, ParentRunner, Theories, Categories, Enclosed, Parameterized, and error‑handling runners—providing code examples and practical insights for flexible unit testing in Java projects.

JUnitparameterized testsrunners
0 likes · 12 min read
A Comprehensive Guide to JUnit Runners: Suite, RunWith, BlockJUnit4ClassRunner, Theories, Categories, Parameterized and More
DaTaobao Tech
DaTaobao Tech
May 23, 2022 · Fundamentals

Importance, Practices, and Automation of Unit Testing in Java Projects

Unit testing in Java projects, essential for catching over 90% of bugs early, follows the AIR (Automatic, Independent, Repeatable) and BCDE (Boundary, Correct, Design, Error) principles, uses Mockito’s Mock‑Do‑Verify pattern, automated IDE generation, JaCoCo coverage metrics, CI pipelines, achieving 85‑+% coverage, zero production incidents, and guides future TDD adoption.

JavaMockitoSoftware quality
0 likes · 9 min read
Importance, Practices, and Automation of Unit Testing in Java Projects
JD Retail Technology
JD Retail Technology
Apr 26, 2022 · Mobile Development

Unit Testing with OCMock: Concepts, Integration, and Usage in iOS

This article explains the necessity and goals of unit testing, outlines common testing concerns such as independent paths, data structures, error handling, and boundary conditions, and provides a detailed guide to integrating and using OCMock in iOS, covering installation, mock types, stubbing, expectations, verification, and advanced techniques.

OCMockSoftware TestingiOS
0 likes · 15 min read
Unit Testing with OCMock: Concepts, Integration, and Usage in iOS
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 8, 2022 · Backend Development

How to Build an Automated Go Unit Test & Coverage Pipeline with Java Service

This article describes how to set up a low‑maintenance, automated unit‑test and integration‑test environment for Go applications using a Java service in a pre‑integration platform, covering Docker packaging, Go tool installation, coverage plugins, diff‑cover for incremental coverage, and REST APIs for task management.

AoneGocode coverage
0 likes · 13 min read
How to Build an Automated Go Unit Test & Coverage Pipeline with Java Service
macrozheng
macrozheng
Apr 6, 2022 · Fundamentals

Why Unit Testing Feels Like a Curse and How Squaretest Can Save You

Unit testing is praised as essential yet dreaded, especially for legacy code, and the article explores why it feels burdensome, reviews tools like Squaretest that auto‑generate massive test suites, critiques other options, and offers practical advice for teams and managers to adopt sustainable testing practices.

AutomationSoftware toolsSquaretest
0 likes · 9 min read
Why Unit Testing Feels Like a Curse and How Squaretest Can Save You
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
Continuous Delivery 2.0
Continuous Delivery 2.0
Apr 5, 2022 · Fundamentals

Just Say No to More End-to-End Tests

While end-to-end tests seem appealing by mimicking real user scenarios, they often become unreliable, slow, and costly, leading teams to miss bugs, waste time, and struggle with feedback loops; a balanced testing strategy that emphasizes fast, reliable unit and integration tests, following the test pyramid, yields better quality and faster releases.

End-to-EndSoftware qualityintegration testing
0 likes · 14 min read
Just Say No to More End-to-End Tests
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
Alibaba Cloud Developer
Alibaba Cloud Developer
Feb 14, 2022 · Backend Development

Boost Java Unit Testing with JUnit5, Mockito, and Auto‑Generated Code

This article examines common unit‑testing problems in Java projects, analyzes their root causes such as development and maintenance costs, and presents practical solutions including choosing JUnit5, leveraging Mockito, using in‑memory databases, and employing a custom IntelliJ plugin to automatically generate test code and test data.

Code GenerationJUnit5Java
0 likes · 18 min read
Boost Java Unit Testing with JUnit5, Mockito, and Auto‑Generated Code
Architect's Journey
Architect's Journey
Jan 26, 2022 · Backend Development

Unit Testing: How My Approach Differs from Yours

The article walks through a step‑by‑step evolution of a simple isEmpty utility, demonstrates proper JUnit assertions, introduces Mockito for isolating complex service logic, and explains Spring Boot Test components, illustrating why thorough unit testing saves time and improves code quality.

JUnitJavaMockito
0 likes · 13 min read
Unit Testing: How My Approach Differs from Yours
FunTester
FunTester
Jan 18, 2022 · Backend Development

Mastering Spock Unit Tests: From Dependencies to Mocking Static Methods

This article walks through setting up Spock for Java/Groovy projects, lists required Maven dependencies, shows how to handle static‑method mocking with PowerMock and Mockito, and provides concrete code examples for mocking @Autowired components, shared objects, and defining mock behavior.

BackendGroovyJava
0 likes · 11 min read
Mastering Spock Unit Tests: From Dependencies to Mocking Static Methods
BaiPing Technology
BaiPing Technology
Jan 10, 2022 · Frontend Development

Master Frontend Unit Testing with Jest and Vue Test Utils

This guide introduces unit testing for frontend projects, explains its benefits, compares popular frameworks like Jest, Mocha, and Karma, and provides step‑by‑step instructions for installing and configuring Jest with Vue Test Utils, including code examples and best‑practice tips.

Jestfrontendtest automation
0 likes · 9 min read
Master Frontend Unit Testing with Jest and Vue Test Utils
Airbnb Technology Team
Airbnb Technology Team
Dec 22, 2021 · Mobile Development

Automated Unit Testing Framework for Android ViewModel (Part 4)

Part 4 of Airbnb’s Android testing series presents a dedicated framework that lets developers write concise, single‑function unit tests for ViewModel classes by specifying initial state, parameters, and expected state or dependency calls through a Kotlin DSL, integrating with JUnit, Robolectric, Mockito, and offering scaffolding and IntelliJ plugins for streamlined, systematic ViewModel logic verification.

AndroidDSLKotlin
0 likes · 12 min read
Automated Unit Testing Framework for Android ViewModel (Part 4)
政采云技术
政采云技术
Dec 7, 2021 · Frontend Development

A Comprehensive Guide to Frontend Unit Testing with Jest and Mocha

This article introduces the importance of frontend unit testing, presents survey data on current practices, compares popular frameworks like Jest and Mocha, provides step‑by‑step setup instructions, demonstrates code examples for JavaScript, TypeScript and async functions, and explains how to generate coverage reports and use common assertions.

JavaScriptJestcoverage
0 likes · 16 min read
A Comprehensive Guide to Frontend Unit Testing with Jest and Mocha
ByteDance SE Lab
ByteDance SE Lab
Dec 3, 2021 · Backend Development

How ByteDance’s SmartUnit Automates Backend Unit Test Generation

This article details ByteDance Quality Lab’s SmartUnit system, which intelligently generates and validates backend unit tests using AST analysis, genetic algorithms, and instrumentation, achieving automated test creation, high coverage, precise assertions, and seamless CI integration while addressing the high cost and complexity of traditional unit testing.

AutomationGolangTest Generation
0 likes · 17 min read
How ByteDance’s SmartUnit Automates Backend Unit Test Generation
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.

BackendGolangMock
0 likes · 18 min read
Go Unit Testing: Concepts, Practices, and Patterns
Amap Tech
Amap Tech
Nov 4, 2021 · Backend Development

Simplifying Java Backend Unit Testing with JSON Serialization

This article shows how to streamline Java backend unit tests by loading JSON fixtures, deserializing them into objects, and re‑serializing results for concise assertions, while providing naming conventions, Maven setup, FastJSON tricks, and advanced Mockito techniques to replace verbose manual object construction.

Backend DevelopmentJSONJava
0 likes · 30 min read
Simplifying Java Backend Unit Testing with JSON Serialization
FunTester
FunTester
Oct 20, 2021 · Backend Development

Boost Go HTTP Performance with fasthttp: Practical API Guide

This article explores the fasthttp library as a high‑performance alternative to Go's net/http client, demonstrates basic and advanced API usage with object pools, shows how to set up a mock test server, and provides complete Go unit‑test examples with output verification.

BackendGoHTTP client
0 likes · 12 min read
Boost Go HTTP Performance with fasthttp: Practical API Guide
IT Architects Alliance
IT Architects Alliance
Oct 7, 2021 · Backend Development

Applying DDD to Refactor Keep's E‑commerce Supply‑Chain System

This article describes how Keep used Domain‑Driven Design, bounded contexts, hexagonal architecture, CQRS, and an EventStore‑based event‑sourcing solution to rebuild its legacy supply‑chain (inventory) system, improve inventory accuracy, simplify extensions, and establish a reusable DDD practice for future micro‑service development.

DDDEvent SourcingSupply Chain
0 likes · 7 min read
Applying DDD to Refactor Keep's E‑commerce Supply‑Chain System
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
Tech Musings
Tech Musings
Sep 21, 2021 · Backend Development

Migrating a Java Spring Microservice to Kotlin: Practical Steps and Pitfalls

This article shares a developer’s experience converting a Java Spring Boot microservice to Kotlin, covering why Kotlin is attractive, required Maven plugins and dependencies, code‑migration quirks such as open classes and @Jvm annotations, testing hurdles, and the final decision to revert to Java.

KotlinSpring Bootcode migration
0 likes · 11 min read
Migrating a Java Spring Microservice to Kotlin: Practical Steps and Pitfalls
ITPUB
ITPUB
Sep 7, 2021 · Fundamentals

How to Write Clean, Maintainable Code: Principles and Practical Tips

This article compiles practical guidelines and personal experiences on writing clean, maintainable code, covering principles such as eliminating duplication, separating concerns, unifying abstraction levels, function design, naming, unit testing, and broader software‑engineering concepts to reduce mental load and improve code quality.

abstractionclean codecoding best practices
0 likes · 24 min read
How to Write Clean, Maintainable Code: Principles and Practical Tips
Programmer DD
Programmer DD
Sep 6, 2021 · Fundamentals

Master JUnit5: Why Upgrade from JUnit4 and How to Use Its Powerful Features

This article explains why developers should switch from JUnit4 to JUnit5, outlines the JUnit5 architecture, shows how to add the proper Maven dependency, and provides practical examples of common annotations, assertions, repeated, parameterized, and nested tests for Spring Boot projects.

JUnit5JavaSpring Boot
0 likes · 7 min read
Master JUnit5: Why Upgrade from JUnit4 and How to Use Its Powerful Features
YunZhu Net Technology Team
YunZhu Net Technology Team
Aug 18, 2021 · Backend Development

Adding Unit Tests and Code Coverage to .NET Core Applications with xUnit, Coverlet, and Azure DevOps

This article demonstrates how to create unit tests for .NET Core methods using xUnit, measure code coverage with Coverlet, generate readable reports with ReportGenerator, and automate testing and coverage analysis in Azure DevOps pipelines, while also showing how to display project badges.

.NET CoreAzure DevOpsCoverlet
0 likes · 15 min read
Adding Unit Tests and Code Coverage to .NET Core Applications with xUnit, Coverlet, and Azure DevOps
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
DevOps Cloud Academy
DevOps Cloud Academy
Aug 2, 2021 · Fundamentals

Classifying Unit Tests by Side Effects and Cleanup Strategies

The article explains how to categorize unit tests into side‑effect‑free and side‑effect‑ful groups, discusses the maintenance challenges of the latter, and recommends cleaning up each test’s side effects individually to enable reliable parallel execution and dynamic test environments.

Parallel Testingsoftware testing fundamentalstest cleanup
0 likes · 5 min read
Classifying Unit Tests by Side Effects and Cleanup Strategies
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.

GoMockSQLite
0 likes · 21 min read
Comprehensive Guide to Go Unit Testing: Tools, Mocking, and Dependency Management
Continuous Delivery 2.0
Continuous Delivery 2.0
Jul 15, 2021 · Fundamentals

How Much Testing Is Enough? A Practical Guide to Test Strategies and Coverage

This article explains how to determine the right amount of testing for a software product by providing evaluation criteria, a step‑by‑step testing strategy—including recording processes, unit, integration and end‑to‑end tests—coverage types, tools, and how to incorporate field feedback for continuous improvement.

Software TestingTest Strategycode coverage
0 likes · 10 min read
How Much Testing Is Enough? A Practical Guide to Test Strategies and Coverage
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 10, 2021 · Backend Development

Concurrent Unit Testing of AssetService.update with Optimization Techniques

This article explains how to write a concurrent unit test for the AssetService.update method using thread pools, CountDownLatch, AtomicInteger, and then suggests optimizations such as replacing AtomicInteger with LongAdder and employing CyclicBarrier to increase contention, providing full code examples and detailed explanations.

AtomicIntegerCyclicBarrierJava
0 likes · 9 min read
Concurrent Unit Testing of AssetService.update with Optimization Techniques
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
转转QA
转转QA
May 26, 2021 · Fundamentals

Integrating Incremental Unit Test Coverage into Test Environment Coverage with Maven Surefire and JaCoCo

This article describes a solution that merges incremental unit test coverage into overall test environment coverage by leveraging Maven Surefire Report Plugin and JaCoCo, detailing steps from CI platform integration, plugin configuration, report generation, to coverage platform processing, enabling comprehensive coverage analysis for release admission.

JaCoCoSoftware Testingci/cd
0 likes · 5 min read
Integrating Incremental Unit Test Coverage into Test Environment Coverage with Maven Surefire and JaCoCo
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
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
DevOps
DevOps
May 10, 2021 · Backend Development

Automated Unit Test Generation for Exception Recall in C/C++ Services

This article presents a white‑box, unit‑test‑driven approach for automatically generating C/C++ test cases that detect and recall runtime stability issues, detailing problem analysis, solution design, code‑analysis, test‑data generation, code generation, failure analysis, and deployment results across large‑scale backend modules.

CTest Generationfuzzing
0 likes · 19 min read
Automated Unit Test Generation for Exception Recall in C/C++ Services
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
Programmer DD
Programmer DD
Mar 4, 2021 · Backend Development

How to Seamlessly Integrate MongoDB with Spring Boot: A Step‑by‑Step Guide

This tutorial walks you through upgrading Spring Boot, introduces MongoDB basics, and provides a hands‑by‑step guide to adding the spring‑boot‑starter‑data‑mongodb dependency, defining entity and repository classes, writing unit tests, and configuring connection properties for robust backend data management.

Backend DevelopmentJavaMongoDB
0 likes · 8 min read
How to Seamlessly Integrate MongoDB with Spring Boot: A Step‑by‑Step Guide
Programmer DD
Programmer DD
Feb 25, 2021 · Backend Development

Master Spring Boot Unit Testing with MockMvc: A Complete Guide

This article explains the fundamentals of unit testing in Spring Boot, covering the purpose of unit tests, how to add the spring-boot-starter-test dependency, the role of MockMvc for controller testing, step‑by‑step creation of Service and Controller test classes, key annotations, assertion techniques, and a brief comparison with Postman.

Backend DevelopmentJUnitJava
0 likes · 13 min read
Master Spring Boot Unit Testing with MockMvc: A Complete Guide
360 Smart Cloud
360 Smart Cloud
Feb 9, 2021 · Fundamentals

Why Write Tests and How to Write Unit Tests in Go

This article explains the long‑term benefits of unit testing such as saving time and money, reducing code complexity, providing documentation, and enabling performance evaluation, and then provides a detailed guide on writing, organizing, and running Go tests with code examples.

GoSoftware qualityhttptest
0 likes · 12 min read
Why Write Tests and How to Write Unit Tests in Go
Alibaba Terminal Technology
Alibaba Terminal Technology
Jan 25, 2021 · Frontend Development

Boost Your Unit Testing Efficiency with VSCode Plugins and Jest Best Practices

This article explains why unit testing is essential, introduces VSCode plugins and Jest configurations that speed up test execution, outlines common testing pitfalls, and details practical test‑case design methods such as equivalence partitioning, boundary‑value analysis, and error‑guessing, while also covering stubs, mocks, and CI integration.

JestMockVS Code
0 likes · 18 min read
Boost Your Unit Testing Efficiency with VSCode Plugins and Jest Best Practices
Top Architect
Top Architect
Jan 12, 2021 · Backend Development

Introduction to Mock Testing with Spring MVC and MockMvc

This article introduces mock testing for Spring MVC controllers, explains why mocks are useful, describes the main MockMvc components, shows required Maven dependencies, and provides complete example test cases for both view‑returning and JSON‑returning endpoints using JUnit and MockMvc.

BackendJUnitJava
0 likes · 8 min read
Introduction to Mock Testing with Spring MVC and MockMvc
Programmer DD
Programmer DD
Jan 9, 2021 · Backend Development

How to Write Unit Tests for File Upload APIs in Spring Boot

This guide shows backend developers how to write unit tests for file‑upload endpoints in Spring Boot using MockMvc, including a complete example with MockMultipartFile and emphasizing test‑driven design for better code quality.

JavaMockMvcSpring Boot
0 likes · 4 min read
How to Write Unit Tests for File Upload APIs in Spring Boot
Amap Tech
Amap Tech
Jan 8, 2021 · Backend Development

Applying Test‑Driven Development and GTest for Unit Testing in Gaode’s Navigation Service

Gaode’s navigation service adopted test‑driven development using Google’s GTest to replace slow diff‑based checks with fast, lightweight unit tests, enabling incremental refactoring of legacy code, improving quality, handling data‑dependency challenges, and demonstrating that writing tests first clarifies requirements while adding minimal overhead.

Backend DevelopmentCTDD
0 likes · 9 min read
Applying Test‑Driven Development and GTest for Unit Testing in Gaode’s Navigation Service