Skip to content
Tagged articles

unit testing

331 articles · Page 3 of 4
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.

C++FuzzingTest Generation
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.

JavaMongoDBSpring Boot
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.

JUnitJavaMockMvc
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.

Gohttptestsoftware quality
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.

CoverageJestMock
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.

C++TDDbackend development
0 likes · 9 min read
Applying Test‑Driven Development and GTest for Unit Testing in Gaode’s Navigation Service
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
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.

Best Practicesbranchingcode review
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.

JavaMavenREST
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.

GroovyJSONJava
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.

Testing Frameworkbachbash
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.

Clean CodeCode ReadabilityDRY
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 DevelopmentFrontend TestingJest
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.

JUnitJavaMocking
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.

Best PracticesClean CodeDRY
0 likes · 11 min read
How to Write Clean, Maintainable Code: 6 Essential Practices
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.

GroovyJavaTDD
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.

Test Namingpublic APIunit 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.

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
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.

code qualitysoftware architecturetesting 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.

GradleGroovyJava
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 StreamsJavaMocking
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 testingJavaResources
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.

Test Automationseleniumsoftware testing
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.

code coveragesecurity testingsoftware 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 5Maven
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.

CRUDJavaMyBatis
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.

Continuous IntegrationMockingTest Automation
0 likes · 7 min read
Understanding Unit Testing: Principles, Practices, and Automation
360 Quality & Efficiency
360 Quality & Efficiency
Feb 25, 2020 · Fundamentals

Introduction to pytest: Installation, Usage, and Advanced Features

This article provides a comprehensive guide to pytest, covering its advantages over unittest, installation steps, basic and class‑based test writing, execution commands, assertion handling, custom markers, fixture scopes, and useful plugins for enhancing Python testing workflows.

MarkersPython testingfixtures
0 likes · 5 min read
Introduction to pytest: Installation, Usage, and Advanced Features
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.

CI/CDTest Automationfeature flags
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.

C++code generationrefactoring
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.

C++backend developmentcode quality
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.

AndroidCIEspresso
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.

DevOpsintegration testingquality assurance
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.

CoberturaJUnitJava
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.

checklistquality assurancesoftware testing
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.

assertionsfuzzy-matchingsoftware testing
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.

PythonTest Automationsoftware testing
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.

GroovyJUnitJava
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.

AgileTDDsoftware engineering
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 engineeringsoftware quality
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.

GoGo-Springbackend framework
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.

CoverageGoGoConvey
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 testingFrontend 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.

DbUnitJavaMockito
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.

Frontend DevelopmentInversion 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.

Dynamic TestingMemory Leakc-programming
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.

GradleJavaMaven
0 likes · 2 min read
How to Use mica-boot-test for Spring Boot Unit Testing
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 IDEAJava
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.

framework-selectionsoftware testingtest 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.

integration testingsoftware 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.

Code styleContinuous IntegrationMocking
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.

integration testingsoftware testingtest antipatterns
0 likes · 16 min read
Software Testing Antipatterns: The Need for Both Unit and Integration Tests