Tagged articles
314 articles
Page 3 of 4
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.

MockingPrivate AccessTestableMock
0 likes · 12 min read
How TestableMock Empowers Java Unit Testing of Private Members and Void Methods
MaGe Linux Operations
MaGe Linux Operations
Dec 4, 2020 · Fundamentals

Master Property‑Based Testing in Python with Hypothesis

Learn how to use the Python Hypothesis library for property‑based testing, understand different test levels and methods, and see practical examples—including unit tests for increment/decrement functions and handling edge cases with custom examples—to write more robust, automated tests.

HypothesisPythonproperty-based testing
0 likes · 8 min read
Master Property‑Based Testing in Python with Hypothesis
Java Architecture Diary
Java Architecture Diary
Oct 10, 2020 · Backend Development

Overcoming OAuth2 Unit Testing Challenges in Spring: A Practical Guide

Unit testing ensures code quality and early bug detection, yet testing OAuth2 systems in Spring presents challenges like dependency on UPMS, lack of standard implementations, and complex token handling; this guide explains why testing is essential and provides a solution using @WithMockUser, custom context factories, and sample code.

javaunit testing
0 likes · 5 min read
Overcoming OAuth2 Unit Testing Challenges in Spring: A Practical Guide
macrozheng
macrozheng
Sep 30, 2020 · Fundamentals

Master Code Reviews: 10 Essential Practices Every Developer Should Follow

This article outlines ten practical code‑review guidelines—from logging standards and IDE warnings to unit testing, branch policies, hidden requirements, exception handling, and SQL performance—helping developers write clean, maintainable, and production‑ready code.

Code reviewbest practicesbranching
0 likes · 14 min read
Master Code Reviews: 10 Essential Practices Every Developer Should Follow
Code Ape Tech Column
Code Ape Tech Column
Sep 24, 2020 · Backend Development

Master Spring Boot: From Project Creation to Hello World in Minutes

This guide walks through the fundamentals of Spring Boot, explaining its purpose, showing how to create a project with Spring Initializr, writing a Hello World REST controller, understanding starter dependencies, configuring properties, exploring the main application class annotations, and adding a simple unit test.

Spring Bootbackend-developmentjava
0 likes · 12 min read
Master Spring Boot: From Project Creation to Hello World in Minutes
FunTester
FunTester
Sep 2, 2020 · Backend Development

Mastering Spock: Groovy Unit Tests for JSON Utilities with Real Code Examples

This article extends the previous JsonPath utility guide by demonstrating how to write comprehensive Groovy‑based Spock unit tests, covering Maven/Gradle setup, basic and data‑driven demos, detailed test cases for JSON path extraction, array operations, statistical functions, and a deliberately introduced bug with its console output.

GroovyJSONSpock
0 likes · 7 min read
Mastering Spock: Groovy Unit Tests for JSON Utilities with Real Code Examples
Efficient Ops
Efficient Ops
Aug 19, 2020 · Operations

Why and How to Unit Test Bash Scripts with the Bach Testing Framework

This article explains why Bash scripts need unit testing, outlines common testing challenges, and demonstrates how the Bach Testing Framework provides safe, fast, and environment‑agnostic unit tests for Bash scripts by mocking external commands and isolating execution logic.

BashTesting frameworkbach
0 likes · 14 min read
Why and How to Unit Test Bash Scripts with the Bach Testing Framework
Alibaba Cloud Native
Alibaba Cloud Native
Aug 14, 2020 · Fundamentals

Why Clean Code Matters: KISS, DRY, Comments, and Unit Tests

The article argues that code should primarily be written for human readers, emphasizing principles like KISS and DRY, thoughtful commenting, avoiding TODOs, and the necessity of unit tests, while acknowledging trade‑offs and offering practical guidance for producing maintainable, elegant software.

DRYKISSclean code
0 likes · 12 min read
Why Clean Code Matters: KISS, DRY, Comments, and Unit Tests
Zhengtong Technical Team
Zhengtong Technical Team
Aug 14, 2020 · Frontend Development

A Practical Guide to Frontend Testing: Understanding TDD, BDD, and Mastering Jest

This article explores the core principles of frontend testing, comparing Test-Driven Development and Behavior-Driven Development methodologies while providing a step-by-step tutorial on configuring the Jest framework and utilizing its essential matchers to write robust, maintainable unit tests for modern web applications.

Behavior Driven DevelopmentJestfrontend testing
0 likes · 12 min read
A Practical Guide to Frontend Testing: Understanding TDD, BDD, and Mastering Jest
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.

JUnitMockingMockito
0 likes · 6 min read
Mocking Void Methods with Mockito: A Complete Step‑by‑Step Guide
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 30, 2020 · Fundamentals

How to Write Clean, Maintainable Code: 6 Essential Practices

This article explores why clean, readable code matters, explains key principles such as KISS and DRY, discusses the role of comments, unit tests, and avoiding TODOs, and offers practical advice for developers to improve code quality and long‑term maintainability.

DRYKISSbest practices
0 likes · 11 min read
How to Write Clean, Maintainable Code: 6 Essential Practices
Continuous Delivery 2.0
Continuous Delivery 2.0
Jul 15, 2020 · Fundamentals

When Constructors Do Too Much Work: Symptoms, Risks, and Refactoring Techniques

The article explains why having constructors perform excessive work is a design flaw, describes how to spot this problem through code symptoms, discusses its impact on testability and maintainability, and provides concrete refactoring strategies such as dependency injection, factories, and builder patterns.

Constructorcode smelldependency-injection
0 likes · 13 min read
When Constructors Do Too Much Work: Symptoms, Risks, and Refactoring Techniques
FunTester
FunTester
Jul 12, 2020 · Fundamentals

Why My First Project’s Bugs Vanished Quickly: Code Standards and Testing Insights

The author shares a first‑hand account of a newly launched backend project, explaining how strict coding standards, Groovy‑Java mixed development, and a pragmatic testing strategy—including limited unit testing, interface checks, and annotation‑based validation—enabled rapid bug resolution and a smooth release.

GroovyTDDbackend-development
0 likes · 4 min read
Why My First Project’s Bugs Vanished Quickly: Code Standards and Testing Insights
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
Continuous Delivery 2.0
Continuous Delivery 2.0
Jun 9, 2020 · Fundamentals

Writing Descriptive Test Method Names and Focusing on Public API

The article explains why test method names should describe the behavior being verified rather than the implementation, shows how clear naming reduces the need to read test code, and discusses the importance of testing public APIs instead of internal implementation details.

public APItest namingunit testing
0 likes · 6 min read
Writing Descriptive Test Method Names and Focusing on Public API
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.

JUnitMockingMockito
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
Continuous Delivery 2.0
Continuous Delivery 2.0
May 13, 2020 · Backend Development

Practical Guide to Unit Testing: Experiences, Benefits, Obstacles, and Implementation Strategies

This comprehensive article shares the author's hands‑on experience with unit testing, explains why testing drives better design and lower costs, outlines common misconceptions and obstacles, and provides detailed implementation guidelines—including architecture refactoring, dependency inversion, and a real‑world TV service example—to help developers start writing effective unit tests.

Software Architecturecode qualitytesting practices
0 likes · 26 min read
Practical Guide to Unit Testing: Experiences, Benefits, Obstacles, and Implementation Strategies
FunTester
FunTester
May 10, 2020 · Backend Development

Master Spock & Mockito: Seamless Unit Testing with Gradle

This article introduces the Groovy‑based Spock framework and the Mockito mocking library, shows how to configure them together in Gradle, and provides detailed Groovy demo code illustrating various mocking, spying, verification, and exception‑handling techniques for robust Java unit testing.

GradleGroovyMockito
0 likes · 8 min read
Master Spock & Mockito: Seamless Unit Testing with Gradle
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 StreamsMockingSystem.in
0 likes · 5 min read
How to Mock System.in and System.out for Java Unit Tests
FunTester
FunTester
Apr 1, 2020 · Backend Development

Comprehensive Collection of API Testing, Unit Testing, Performance Testing, and Related Technical Resources

This page aggregates a wide range of technical articles, videos, case studies, tools, and tutorials covering API testing, unit and white‑box testing, performance testing, Java, Groovy, Python, UI automation, and various testing utilities, providing a valuable resource hub for software testing professionals.

API testingResourcesautomation
0 likes · 13 min read
Comprehensive Collection of API Testing, Unit Testing, Performance Testing, and Related Technical Resources
FunTester
FunTester
Mar 17, 2020 · Fundamentals

Curated List of Unit Testing and White‑Box Testing Articles

This page provides a curated collection of Chinese articles covering unit testing, white‑box testing, testing frameworks such as Spock, JUnit, Selenium, performance testing, and related technical and non‑code topics for software developers and testers.

SeleniumSoftware Testingtest automation
0 likes · 7 min read
Curated List of Unit Testing and White‑Box Testing Articles
FunTester
FunTester
Mar 15, 2020 · Fundamentals

What Is White-Box Testing and How to Perform It

White-box testing examines a program’s internal structure, code, and logic by creating and executing test cases that cover all paths, conditions, and statements, enhancing security, reliability, and code quality, while outlining its steps, techniques, examples, advantages, and drawbacks.

Software Testingcode coveragesecurity testing
0 likes · 9 min read
What Is White-Box Testing and How to Perform It
ITPUB
ITPUB
Mar 13, 2020 · Backend Development

Step‑by‑Step Migration from JUnit 4 to JUnit 5 in a Spring Boot Project

This tutorial guides you through creating a basic Spring Boot calculator app, adding JUnit 4 tests, then fully migrating the project to JUnit 5 by updating dependencies, rewriting test annotations, and leveraging new JUnit 5 features such as @ExtendWith and @DisplayName.

JUnit 4JUnit 5Mockito
0 likes · 17 min read
Step‑by‑Step Migration from JUnit 4 to JUnit 5 in a Spring Boot Project
Programmer DD
Programmer DD
Mar 2, 2020 · Backend Development

How to Integrate MyBatis with Spring Boot for CRUD Operations

This guide walks through integrating MyBatis into a Spring Boot project, covering dependency setup, MySQL configuration, entity and mapper creation, CRUD annotations, and unit testing to verify database operations, including transaction management and result mapping.

CRUDMyBatisSpring Boot
0 likes · 10 min read
How to Integrate MyBatis with Spring Boot for CRUD Operations
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
Continuous Delivery 2.0
Continuous Delivery 2.0
Feb 18, 2020 · Backend Development

Applying Feature Flags in Unit Testing and CI/CD Pipelines

The article explains how to use feature flags in a three‑tier microservice architecture, describing the need for both high‑level end‑to‑end tests and low‑level unit tests within CI/CD pipelines to ensure correct behavior when flags are on or off, while avoiding excessive test combinatorial explosion.

MicroservicesSoftware qualityci/cd
0 likes · 4 min read
Applying Feature Flags in Unit Testing and CI/CD Pipelines
Top Architect
Top Architect
Feb 12, 2020 · Backend Development

Refactoring a 3000‑Line Legacy Data‑Center Management System to 15 Lines: Lessons and Best Practices

This article recounts how a developer transformed a massive three‑thousand‑line C# data‑center monitoring client into a concise fifteen‑line solution by applying reflection, generics, and systematic refactoring, while sharing practical advice on avoiding code generators, reinventing the wheel, and using unit tests to foster clean architecture.

Software Architecturec++code-generation
0 likes · 18 min read
Refactoring a 3000‑Line Legacy Data‑Center Management System to 15 Lines: Lessons and Best Practices
Architecture Digest
Architecture Digest
Feb 6, 2020 · Backend Development

Refactoring a 3000‑Line C# System to 15 Lines: Lessons and Practices

An experienced developer recounts how he transformed a cumbersome three‑tier C# data‑center management system from thousands of lines to a concise, maintainable codebase using reflection, generics, and thoughtful refactoring, while sharing practical advice on avoiding code generators, reducing duplication, and embracing unit testing.

Design PatternsSoftware Architecturebackend-development
0 likes · 18 min read
Refactoring a 3000‑Line C# System to 15 Lines: Lessons and Practices
Huajiao Technology
Huajiao Technology
Feb 4, 2020 · Mobile Development

How to Build Reliable Android Automated Tests: From Unit to UI

This article explains why Android testing is crucial, outlines common testability problems, and provides step‑by‑step solutions using MVP architecture, interface‑based design, JUnit, Mockito, Robolectric, Espresso, and CI integration to create maintainable unit and UI tests.

AndroidAutomated TestingCI
0 likes · 12 min read
How to Build Reliable Android Automated Tests: From Unit to UI
FunTester
FunTester
Jan 27, 2020 · Fundamentals

Why Integration Testing Is Essential for Seamless Software Collaboration

Integration testing verifies that individually tested software units work together as intended, bridging the gap between unit tests and system tests, and is a critical practice for DevOps teams to ensure cohesive, reliable applications.

DevOpsSoftware Testingintegration testing
0 likes · 6 min read
Why Integration Testing Is Essential for Seamless Software Collaboration
Ctrip Technology
Ctrip Technology
Jan 16, 2020 · Frontend Development

Comprehensive Guide to Unit Testing in React and React Native Projects

This article presents a complete tutorial on setting up and using Jest, Enzyme, and react‑hooks‑testing‑library for unit testing React and React Native applications, covering environment configuration, simple function tests, lifecycle hooks, mocking, snapshot testing, asynchronous tests, Redux and Hook testing, as well as coverage reporting and CI integration.

EnzymeJestReact
0 likes · 13 min read
Comprehensive Guide to Unit Testing in React and React Native Projects
FunTester
FunTester
Jan 9, 2020 · Information Security

Essential Security Checklist for Web Apps: From Unit Tests to Encryption

This article presents a practical checklist for securing web applications, covering unit testing, access control, change tracking, admin privilege management, least‑privilege principles, remote redundancy, monitoring, encryption, automated security scanning, and SQL injection prevention, offering actionable guidance for developers.

Web Securityaccess controlencryption
0 likes · 7 min read
Essential Security Checklist for Web Apps: From Unit Tests to Encryption
FunTester
FunTester
Jan 7, 2020 · Fundamentals

Why High Test Coverage Can Mislead You: Lessons from Java Code

This article explains how test‑coverage metrics such as line and branch coverage can give a false sense of quality, demonstrates common pitfalls with Java examples and Cobertura reports, and offers practical guidelines for using coverage data to improve testing and code reliability.

CoberturaJUnitcode quality
0 likes · 17 min read
Why High Test Coverage Can Mislead You: Lessons from Java Code
FunTester
FunTester
Jan 6, 2020 · Fundamentals

Unit Test Case Guide and Checklist

This article explains the purpose of unit testing, outlines best‑practice guidelines for creating and managing unit test plans, and provides a comprehensive checklist covering input validation, date and time verification, security, usability, logging, business logic, reporting, environment, email, and search functionality.

Software Testingchecklistquality assurance
0 likes · 12 min read
Unit Test Case Guide and Checklist
FunTester
FunTester
Nov 29, 2019 · Fundamentals

When Simple Assertions Fail: Mastering Fuzzy Matching in Unit Tests

This article examines why simple, exact-value assertions often fall short in unit testing, demonstrates how to apply fuzzy matching for unpredictable fields, and offers practical alternatives to keep tests reliable and maintainable.

Software Testingassertionsfuzzy-matching
0 likes · 5 min read
When Simple Assertions Fail: Mastering Fuzzy Matching in Unit Tests
360 Quality & Efficiency
360 Quality & Efficiency
Nov 26, 2019 · Fundamentals

Getting Started with Python unittest: Principles and Practical Automation

This article introduces Python’s built‑in unittest framework, outlining its lightweight advantages, core components such as TestCase, TestSuite, TestRunner and TestLoader, and demonstrates a complete automation workflow from Excel‑based test data preparation to generating HTML test reports with HTMLTestRunnerNew.

PythonSoftware Testingtest automation
0 likes · 4 min read
Getting Started with Python unittest: Principles and Practical Automation
FunTester
FunTester
Nov 19, 2019 · Backend Development

Why Skipping Unit Tests Costs More: Java and Groovy Examples

The article explains why many developers avoid unit testing despite its importance, demonstrates a Java method for filtering unpromised tools in a home‑renovation app, provides complete JUnit and Groovy/Spock test implementations, and shows how richer output from Groovy/Spock can speed debugging.

GroovyJUnitMockito
0 likes · 10 min read
Why Skipping Unit Tests Costs More: Java and Groovy Examples
DevOps
DevOps
Nov 18, 2019 · Operations

Testing Layers and Automated Unit Testing Practices in DevOps

The article explains the three-tier testing hierarchy (unit, interface, UI), the recommended test size distribution, mandatory versus optional test types, and how to implement automated unit testing within a DevOps workflow using version control, build tools, test frameworks, and feedback platforms.

DevOpstestingunit testing
0 likes · 5 min read
Testing Layers and Automated Unit Testing Practices in DevOps
Architects Research Society
Architects Research Society
Sep 8, 2019 · Fundamentals

Test‑Driven Development (TDD): Concepts, Practices, Myths, and Tools

This article provides a comprehensive overview of Test‑Driven Development, explaining its principles, workflow, relationship to acceptance testing and traditional testing, its impact on design and documentation, challenges in database development, integration with Agile Model‑Driven Development, common myths, adoption statistics, and a curated list of supporting tools.

Software TestingTDDagile
0 likes · 20 min read
Test‑Driven Development (TDD): Concepts, Practices, Myths, and Tools
Continuous Delivery 2.0
Continuous Delivery 2.0
Aug 14, 2019 · Fundamentals

Understanding the Real Purpose of Writing Unit Tests

The article humorously explains that the true goal of unit testing is to ensure software quality while maintaining development speed, comparing ineffective testing to practicing shooting without scoring, and suggesting that without proper practice, both efforts may be futile.

Development SpeedSoftware qualitysoftware-engineering
0 likes · 1 min read
Understanding the Real Purpose of Writing Unit Tests
Didi Tech
Didi Tech
Aug 9, 2019 · Backend Development

Introducing Go‑Spring: A Spring‑like Application Framework for Go

Go‑Spring is a Go‑language application framework that brings Spring‑style conventions such as dependency injection, auto‑configuration, starter modules, interface‑based design, and integrated testing to developers, enabling organized code, easy component swapping, configuration binding, and full‑stack unit tests while supporting databases, messaging, and microservice features.

Backend FrameworkGoGo-Spring
0 likes · 10 min read
Introducing Go‑Spring: A Spring‑like Application Framework for Go
Continuous Delivery 2.0
Continuous Delivery 2.0
Jul 11, 2019 · Fundamentals

Seven Practical Techniques for Writing Testable Code

Writing unit-testable code often requires refactoring, and by focusing on minimizing function size, dependencies, and complexity, developers can adopt seven practical techniques—including limiting function lines, single responsibility, dependency injection, avoiding complex parameters, using abstractions, extracting testable units, and handling private functions—to improve testability and team efficiency.

best practicesrefactoringsoftware design
0 likes · 6 min read
Seven Practical Techniques for Writing Testable Code
Didi Tech
Didi Tech
Jun 1, 2019 · Backend Development

Testing Pyramid and Integration Testing Practices for a Go Service

By applying Mike Cohn’s testing pyramid to a Go scheduling service, the author demonstrates a structured approach that combines straightforward unit tests, organized integration suites with setup/teardown hooks and coverage scripts, expressive GoConvey assertions, and end‑to‑end trace‑ID verification, while noting remaining gaps.

GoGoConveycoverage
0 likes · 12 min read
Testing Pyramid and Integration Testing Practices for a Go Service
Beike Product & Technology
Beike Product & Technology
May 23, 2019 · Fundamentals

Frontend Automated Testing: A Comprehensive Guide

This article explores four key questions about automated testing: what it is, why it matters, which projects benefit from it, and how to implement it, providing a complete frontend testing framework including unit testing, API testing, functional testing, and benchmark testing.

API testingAutomated TestingReact Testing
0 likes · 16 min read
Frontend Automated Testing: A Comprehensive Guide
Youzan Coder
Youzan Coder
May 17, 2019 · Backend Development

How Youzan’s Unit Test Architecture Solves Common Testing Pain Points

This article explains Youzan’s layered unit‑testing framework for microservice applications, outlines typical pain points such as massive test‑case rewrites, unstable test data, and missing result verification, and demonstrates how tools like DbUnit, H2, springockito, spring‑test and PowerMock are combined to provide data preparation, mock injection, automatic cleanup, and declarative result checks.

DbUnitMockitoPowerMock
0 likes · 13 min read
How Youzan’s Unit Test Architecture Solves Common Testing Pain Points
Node Underground
Node Underground
Apr 25, 2019 · Frontend Development

How Inversion of Control Boosts Front‑End Development Efficiency

This article explains the Inversion of Control (IoC) pattern and its Dependency Injection implementation, showing how a simple container can decouple modules, improve modularity, speed up development, and make unit testing easier for front‑end JavaScript/TypeScript projects.

Design PatternsInversion of Controldependency-injection
0 likes · 11 min read
How Inversion of Control Boosts Front‑End Development Efficiency
360 Tech Engineering
360 Tech Engineering
Mar 21, 2019 · Fundamentals

Memory Leak Bugs in a 6000‑Line C Module: Lessons from Unit Testing

This article shares practical experiences from unit testing a 6000‑line C module, detailing static code review and dynamic gtest testing, uncovering common defects such as memory leaks, and presenting two memory‑leak case studies with root‑cause analysis and cleanup recommendations.

C ProgrammingDynamic TestingSoftware quality
0 likes · 7 min read
Memory Leak Bugs in a 6000‑Line C Module: Lessons from Unit Testing
Java Architecture Diary
Java Architecture Diary
Mar 8, 2019 · Backend Development

How to Use mica-boot-test for Spring Boot Unit Testing

This guide explains the purpose of the mica-boot-test component, shows how to add its Maven or Gradle dependency, and provides two example test classes demonstrating the use of @MicaBootTest with either @RunWith(MicaSpringRunner.class) or inheritance from MicaBaseTest.

GradleSpring Bootjava
0 likes · 2 min read
How to Use mica-boot-test for Spring Boot Unit Testing
Programmer DD
Programmer DD
Jan 23, 2019 · Operations

How to Build a Full CI/CD Pipeline for Python with GitLab, Docker, and SonarQube

This article walks through creating a complete CI/CD workflow for a Python service using GitLab CI, Docker‑based gitlab‑runner, unit testing, static code analysis with SonarQube, service containers for Redis and MongoDB, and deployment steps, providing all necessary configuration files and commands.

DockerGitLab CIPython
0 likes · 9 min read
How to Build a Full CI/CD Pipeline for Python with GitLab, Docker, and SonarQube
Java Captain
Java Captain
Jan 8, 2019 · Fundamentals

How to Minimize Bugs in Development: Practices and Tips

The article shares practical methods for reducing bugs throughout the software development lifecycle, emphasizing early communication with product managers and testers, thorough design and code reviews, mandatory unit testing, continuous integration, and proactive log monitoring to ensure smooth testing and delivery.

bug preventioncode qualitycommunication
0 likes · 7 min read
How to Minimize Bugs in Development: Practices and Tips
Programmer DD
Programmer DD
Jan 3, 2019 · Backend Development

7 Proven Tips to Write Cleaner, More Efficient Java Code

This article presents seven practical techniques—including using IntelliJ IDEA, upgrading to JDK 8+, adopting Maven/Gradle, leveraging Lombok, writing unit tests, refactoring incrementally, and gathering regular customer feedback—to help developers produce shorter, clearer, and more maintainable Java code.

Coding TipsIntelliJ IDEALombok
0 likes · 7 min read
7 Proven Tips to Write Cleaner, More Efficient Java Code
360 Quality & Efficiency
360 Quality & Efficiency
Nov 19, 2018 · Fundamentals

Understanding Test Frameworks: Origins, Selection Challenges, and Recommended Tools

This article explains the concept of testing frameworks, discusses why reinventing wheels is discouraged, outlines the difficulties in selecting suitable frameworks, and provides a comprehensive list of general and mobile UI automation testing tools along with criteria for evaluating good frameworks.

Software Testingframework selectiontest frameworks
0 likes · 8 min read
Understanding Test Frameworks: Origins, Selection Challenges, and Recommended Tools
Test Development Learning Exchange
Test Development Learning Exchange
Oct 25, 2018 · Fundamentals

Using Python's unittest Module for Unit Testing, Reporting, and CI Integration

This article introduces Python's built‑in unittest framework, explains core concepts such as TestCase, TestSuite, TestLoader, and TestRunner, demonstrates how to write test cases, generate HTML and XML reports with HTMLTestRunner and xmlrunner, and shows parameterized testing with nose‑parameterized for CI pipelines.

CIHTMLTestRunnerPython
0 likes · 7 min read
Using Python's unittest Module for Unit Testing, Reporting, and CI Integration
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
360 Quality & Efficiency
360 Quality & Efficiency
Sep 17, 2018 · Fundamentals

Common Software Testing Antipatterns and the Need for Both Unit and Integration Tests

This article reviews language‑agnostic software testing antipatterns, explains the test pyramid, defines unit and integration testing, lists frequent testing mistakes, and demonstrates why a balanced mix of unit and integration tests is essential for reliable, fast, and maintainable software development.

Software Testingintegration testingtest pyramid
0 likes · 16 min read
Common Software Testing Antipatterns and the Need for Both Unit and Integration Tests
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
360 Quality & Efficiency
360 Quality & Efficiency
Sep 3, 2018 · Fundamentals

Software Testing Antipatterns: The Need for Both Unit and Integration Tests

This article examines language‑agnostic software testing antipatterns, explains the differences between unit and integration testing, lists common testing mistakes, and demonstrates why a balanced test pyramid—combining both fast, maintainable unit tests and slower, broader integration tests—is essential for reliable software development.

Software Testingintegration testingtest antipatterns
0 likes · 16 min read
Software Testing Antipatterns: The Need for Both Unit and Integration Tests
Programmer DD
Programmer DD
Aug 17, 2018 · Fundamentals

Who Should Write Unit Tests? Weighing Developer vs Tester Pros & Cons

This article examines the debate over who should write unit tests—developers or testers—by outlining the advantages and disadvantages of each role, explaining what unit testing is, how to design effective test cases, and offering practical guidance for implementing high‑quality automated tests.

Software Testingdevelopertest case design
0 likes · 9 min read
Who Should Write Unit Tests? Weighing Developer vs Tester Pros & Cons
JD Tech
JD Tech
Jul 30, 2018 · Backend Development

Defining Units, Integration Testing Responsibilities, and the Evolution of Mock Frameworks in Java Backend Development

This article explains how to define a unit in testing, discusses who should write unit and integration tests, presents three generations of a custom Java mock framework with code examples, compares its pros and cons, and introduces EvoSuite for automatic test generation within Maven projects.

EvoSuiteintegration testingmock framework
0 likes · 16 min read
Defining Units, Integration Testing Responsibilities, and the Evolution of Mock Frameworks in Java Backend Development
Java Captain
Java Captain
Jul 22, 2018 · Fundamentals

Best Practices for Writing Clean and Maintainable Code

This article summarizes essential clean‑code practices—including commenting, naming, method design, exception handling, concurrency, unit testing, and overall code structure—to help engineers write elegant, readable, and maintainable software.

clean codecode stylenaming conventions
0 likes · 10 min read
Best Practices for Writing Clean and Maintainable Code
JD Tech
JD Tech
Jun 27, 2018 · Backend Development

Introducing pmock: A Zero‑Intrusion Mock Framework for Java Unit Testing

This article presents pmock, a lightweight, zero‑learning‑cost mock framework for Java unit testing that integrates seamlessly with existing tests, explains the motivation behind unit testing, compares popular mock libraries, and details pmock’s configuration, usage, implementation, and known limitations.

Software Testingmock frameworkpmock
0 likes · 12 min read
Introducing pmock: A Zero‑Intrusion Mock Framework for Java Unit Testing
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
Youzan Coder
Youzan Coder
Apr 8, 2018 · Fundamentals

Testing Asynchronous Systems: Strategies and Best Practices

Testing asynchronous systems requires specialized strategies—monitoring callbacks with synchronization primitives and reliable polling with timeouts, delays, and frequencies—to handle nondeterministic execution, avoid flaky assertions, and improve testability by decoupling business logic from periodic scheduling, as demonstrated by real‑world polling implementations for Elasticsearch and MySQL/Redis jobs.

Java TestingPollingasynchronous testing
0 likes · 6 min read
Testing Asynchronous Systems: Strategies and Best Practices
MaGe Linux Operations
MaGe Linux Operations
Jan 7, 2018 · Backend Development

Why Your Python with‑Statement Fails: Debugging Global Process Locks

The article examines a flawed implementation of a global process lock using Python's with statement, explains why exceptions raised in __enter__ are not caught by __exit__, demonstrates failing unit tests, and presents three alternative solutions—including a custom ABContext, use of the deprecated contextlib.nested, and a simple if‑statement workaround—to correctly manage exceptions in context managers.

Exception HandlingPythoncontext manager
0 likes · 6 min read
Why Your Python with‑Statement Fails: Debugging Global Process Locks
Liulishuo Tech Team
Liulishuo Tech Team
Dec 15, 2017 · Frontend Development

Mastering Frontend Unit Testing: Mocha vs Jest and Practical Tips

This article explores why unit testing is essential for frontend projects, compares Mocha and Jest across assertions, coverage, environment setup, mocking, snapshots, and watch mode, and offers practical guidance on choosing tools, writing maintainable tests, and balancing coverage with development speed.

JavaScriptJestcoverage
0 likes · 19 min read
Mastering Frontend Unit Testing: Mocha vs Jest and Practical Tips
Dada Group Technology
Dada Group Technology
Dec 8, 2017 · Backend Development

Key Considerations for Large‑Scale System Refactoring: Lessons from Dada JD.com’s Double‑11 Experience

The article shares practical insights on planning, designing, developing, testing, and rolling out a large‑scale backend system refactor, emphasizing resource limits, pain points of legacy code, unit‑test protection, layering, decoupling, monitoring, and staged deployment to ensure stability during high‑traffic events.

Backend ArchitectureDecouplingPerformance Monitoring
0 likes · 9 min read
Key Considerations for Large‑Scale System Refactoring: Lessons from Dada JD.com’s Double‑11 Experience
Liulishuo Tech Team
Liulishuo Tech Team
Oct 22, 2017 · Big Data

Data-CI: A SQL-Based Data Unit Testing Framework for ETL

The article introduces data-ci, a SQL‑driven unit testing framework that lets engineers write, organize, and automate data validation tests for ETL pipelines, providing assertions, failure callbacks, coverage reporting, and CI integration to improve data quality and reliability.

Big DataData QualityETL
0 likes · 9 min read
Data-CI: A SQL-Based Data Unit Testing Framework for ETL
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Sep 21, 2017 · Frontend Development

Understanding Unit Testing and Jest: Concepts, Types, Tools, and Best Practices

This article explains the fundamentals of unit testing, including its importance, various test types, tool categories, implementation principles, hooks, best‑practice guidelines, and introduces the Jest JavaScript testing framework with installation steps, features, and example test scripts for both synchronous and asynchronous code.

BDDJavaScriptJest
0 likes · 9 min read
Understanding Unit Testing and Jest: Concepts, Types, Tools, and Best Practices
DevOps Engineer
DevOps Engineer
Aug 10, 2017 · Fundamentals

A Comprehensive Overview of Software Testing Concepts and Methods

This article provides a detailed overview of software testing fundamentals, covering testing stages across project lifecycles, classifications such as black‑box, white‑box, and gray‑box testing, functional and performance testing, manual versus automated testing, and specialized tests like smoke, regression, random, exploratory, and security testing.

Performance TestingSoftware Testingblack-box testing
0 likes · 10 min read
A Comprehensive Overview of Software Testing Concepts and Methods
Programmer DD
Programmer DD
Jul 30, 2017 · Backend Development

Kickstart Spring Boot: Build Your First Web Service in Minutes

This guide walks you through creating a basic Spring Boot project with Maven, adding the web starter, implementing a simple Hello World REST controller, and writing unit tests using MockMvc, providing step‑by‑step instructions, code snippets, and project structure details to help Java developers quickly get started with lightweight Spring applications.

REST APIspring-bootunit testing
0 likes · 7 min read
Kickstart Spring Boot: Build Your First Web Service in Minutes
21CTO
21CTO
Jul 26, 2017 · Fundamentals

Why Writing One Million Lines of Code Is a Myth—and How to Write Quality Code

This article debunks the myth of writing a million lines of code, explains why code quantity matters less than quality, and offers ten practical steps—including solid fundamentals, coding standards, design principles, refactoring, technical debt management, code reviews, static analysis, unit testing, self‑testing, and leveraging open source—to help developers produce high‑quality software efficiently.

Code reviewTechnical Debtbest practices
0 likes · 10 min read
Why Writing One Million Lines of Code Is a Myth—and How to Write Quality Code
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 15, 2017 · Frontend Development

Quickly Add Jest Snapshot Tests to Your React Project

This article explains why web releases often miss thorough testing, introduces Jest and its React support, and provides a step‑by‑step guide to implementing snapshot testing and improving unit‑test coverage in modern React applications.

JestReactsnapshot testing
0 likes · 5 min read
Quickly Add Jest Snapshot Tests to Your React Project