Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#testing

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

500 articles in the current browsing window, ordered by publication date.

Mastering Byteman: How AT LINE, AT READ, and Other Specifiers Control Java Bytecode Injection

This article explains Byteman's injection point specifiers—AT LINE, AT READ, AFTER READ, AT WRITE, AFTER WRITE, AT INVOKE, AFTER INVOKE, AT NEW, AFTER NEW, AT SYNCHRONIZE, AFTER SYNCHRONIZE, AT THROW, and AT EXCEPTION EXIT—detailing their syntax, matching rules, counting options, and practical usage in Java bytecode instrumentation.

Implementing Incremental PHP Code Coverage with php-code-coverage and pcov

This article explains how to use php-code-coverage and the pcov extension to collect line, branch, and path coverage for PHP projects, introduces incremental coverage based on diff files, discusses configuration methods, performance optimizations, and practical lessons learned from real‑world deployment.

A Low‑Level Bug Caused by Decimal Precision Mistake: Lessons on Code Review, Testing, and Process

A simple typo that changed a daily interest rate from 0.00006944444 to 0.00069444444 inflated calculated interest tenfold, went unnoticed because the author self‑approved the SQL update and testing only checked syntax, and the incident underscores the need for rigorous code review, testing, and change‑management procedures for critical data.

Instagram’s Migration from Python 2 to Python 3: Challenges, Solutions, and Performance Gains

This article details how Instagram migrated its massive Python 2/Django codebase to Python 3, covering the motivations, custom Django extensions, migration strategy, technical pitfalls such as Unicode handling, pickle compatibility, iterator behavior, and the resulting CPU and memory improvements.

How We Boosted CI Automation Efficiency by 50%: A Real‑World Case Study

This article details how a development team identified performance, stability, and metric shortcomings in their automated CI pipeline and implemented architectural, process, and tooling improvements—including GPU‑enabled Linux runners, dynamic thread pools, result noise reduction, and comprehensive dashboards—to dramatically increase test throughput, reliability, and overall automation value.

Onionl-UI: Building a Vue 3 Component Library – Architecture, Build Process, and Unit Testing

This article introduces Onionl-UI, a newly created Vue 3 component library, describing its motivation, current status, technology choices such as Vite and UnoCSS, directory layout, build configuration, component implementation, and unit testing with Vitest, offering a practical walkthrough for frontend engineers.

38 Practices for Managing Technical Debt and Improving Software Development

The article outlines 38 actionable practices—ranging from treating technical debt like a loan and emphasizing simple, well‑named code to rigorous code reviews, systematic refactoring, comprehensive testing, automation, clear documentation, continuous learning, professional conduct, and solid design principles—to help teams reduce debt, improve quality, and sustain long‑term software health.

Deep Dive into Spring Boot 2.7.10 Embedded Tomcat Configuration, Thread Management and Performance Testing

This article provides a comprehensive analysis of Spring Boot 2.7.10's embedded Tomcat 9.0.73 default settings, core parameters, internal thread architecture, configuration examples, performance testing with various concurrent connections, and includes detailed code snippets and diagrams, while also containing promotional material for AI services.

How Lalamove Built a Scalable Localization Testing Platform with Prism

Facing resource constraints, complex market variations, and limited tooling, Lalamove’s QA team designed the Prism platform to automate multi‑market, multi‑language data testing, push verification, and comprehensive localization validation, leveraging Faker for data generation, custom pipelines, and integrated reporting to boost test efficiency and coverage.

Key New Features in Laravel 11: Improved HTTP Client, Query Builder, Testing Tools, Blade Components, and Type‑Safe Routing

Laravel 11 introduces a suite of enhancements—including a refined HTTP client with retry support, advanced query‑builder aggregation methods, streamlined testing assertions, expanded Blade component directives, and native type‑safe routing—to boost performance, simplify development workflows, and improve code maintainability for PHP developers.

How Playwright Transforms Car‑Insurance UI Testing: From Recording to Automated Reporting

This article explains how Playwright can automate the UI testing of a car‑insurance H5 application, covering background challenges, tool installation, recording test cases, API response verification, building a full automated testing pipeline, and a demo that reduces manual effort while improving reliability.

Handling PHP Version Compatibility: Common Issues and Effective Solutions

This article examines common PHP version compatibility challenges—including deprecated functions, changed defaults, framework incompatibilities, syntax alterations, and stricter error reporting—and provides a step‑by‑step guide with auditing, refactoring, framework updates, testing, environment setup, and tools to ensure smooth upgrades such as from PHP 7 to PHP 8.

CI/CD Practices for Microservice Development and Continuous Delivery

This article explains the essential concepts of continuous integration, delivery, and deployment, outlines the differences between monolithic and microservice CI/CD pipelines, and presents five practical best‑practice recommendations—including testing strategies, environment design, CI practices, configuration management, and failure handling—to improve DevOps efficiency in cloud‑native development.

Comprehensive Testing of Business Data Migration in Enterprise Applications

This article details the comprehensive process of testing business data migration in enterprise applications, covering requirements analysis, environment preparation, test planning, data validation, performance testing, security checks, rollback strategies, and feedback mechanisms to ensure accuracy and integrity.

Domain-Driven Design (DDD) Architecture: Concepts, Layers, and Practices

Domain‑Driven Design (DDD) structures software around a rich domain model—entities, value objects, aggregates, and services—organized into UI, application, domain, and infrastructure layers, employing patterns such as aggregate roots, domain events, and event‑driven microservices to improve maintainability, scalability, and collaboration between developers and domain experts.

Understanding Agile Methodology and Agile Testing: Principles, Practices, and Pure Agile

The article explains the principles of agile methodology and agile testing, highlighting the benefits of early involvement, continuous feedback, customer‑centricity, test‑driven development, regression testing, lightweight documentation, and collaboration, and introduces the concept of pure agile as a strict adherence to the Agile Manifesto.

How to Load Initial Data into Spring Boot 3.2.5: Runners, Beans, and SQL Scripts

This guide explains why pre‑loading initial data is essential for Spring Boot applications and demonstrates four practical methods—CommandLineRunner/ApplicationRunner, bean initialization with @PostConstruct, SQL script execution, and @Sql annotation for tests—complete with code snippets and configuration details.

Standardizing Development, Testing, and Deployment to Boost R&D Efficiency at Tencent Meeting

The article describes how Tencent Meeting improved its R&D efficiency by establishing standardization across development, testing, deployment, and operations domains, unifying programming language and CI/CD pipelines, and introducing environment governance and fast‑update mechanisms to reduce duplication, errors, and delivery time.

A Practical Guide to Full‑Process Quality Assurance for Cross‑Department Projects

This article outlines a practical, end‑to‑end quality assurance framework for large, cross‑department projects, detailing actionable steps and best practices for each phase—from requirement analysis and design through integration, testing, deployment, and post‑release monitoring—to help QA leads proactively identify and mitigate risks.

Understanding the Strategy Design Pattern: Principles, Benefits, and PHP Implementations

This article explains the Strategy design pattern, its alignment with SOLID principles such as Single Responsibility and Open/Closed, and demonstrates how it improves code maintainability, reusability, testability, and flexibility through clear PHP examples for payments, sorting, discounts, and shipping.

How iLogtail Achieves Million‑Scale Observability with SRE Best Practices

This article explains how iLogtail, Alibaba Cloud's high‑performance observability agent, tackles reliability challenges at million‑scale deployments through a comprehensive SRE workflow that spans design, development, testing, gray‑release, operations, and continuous customer support, all while leveraging cloud‑native tools and automation.

Mastering Shallow vs Deep Copy in Python: When and How to Use Them

This guide explains the difference between Python's shallow and deep copy mechanisms, shows the built‑in tools available, and provides ten concrete code examples covering lists, dictionaries, custom objects, tuples, sets and multi‑level nesting to help you choose the right copying strategy for reliable API test automation.

Mastering Idempotency Testing: Scenarios, Detection, and Real-World Test Cases

This article explains idempotency testing, outlines common scenarios such as network requests and financial transactions, describes methods to detect duplicate requests, provides comprehensive coverage strategies, offers practical test‑case examples, lists relevant testing tools, and includes a JUnit code sample for implementation.

How iLogtail Achieves Million‑Scale Observability with SRE Practices

This article details how Alibaba Cloud's iLogtail agent, serving tens of thousands of hosts and containers, overcomes unique stability challenges through a comprehensive SRE approach that spans design, development, testing, gray‑release, operations, and customer‑support, ultimately boosting reliability and reducing incident rates.

Understanding Test‑Driven Development (TDD), UTDD, ATDD, and BDD with a Practical Java Example

This article explains the concepts of Test‑Driven Development (TDD), Unit Test‑Driven Development (UTDD), Acceptance Test‑Driven Development (ATDD) and Behavior‑Driven Development (BDD), discusses why TDD is not dead, compares the three approaches, and provides a step‑by‑step Java implementation with code samples, testing workflow, and refactoring guidance.

Why Bugs Are Inevitable and How to Balance Quality with Delivery Speed

The article reflects on a bug‑fixing team's experience, arguing that bugs are an inevitable by‑product of software development, discussing the limits of zero‑tolerance policies, the trade‑offs between quality and resources, and suggesting cultural and engineering practices such as testing left‑shift, code reviews, and refactoring to improve quality without sacrificing delivery speed.

Boost API Automation Testing with Parameterized Python Decorators

This guide demonstrates how parameterized Python decorators can streamline repetitive tasks in API automation testing—handling login tokens, retries, environment selection, data‑driven tests, logging, performance monitoring, permission checks, mock responses, cleanup, and test tagging—reducing code duplication and improving maintainability.

How to Measure and Optimize Your Software Development Process with Key Metrics

This guide details a comprehensive set of software development metrics—including agile velocity, code quality, continuous integration, technical debt, unit and smoke testing, test automation, quality process, and continuous delivery—explaining their definitions, data sources, calculation methods, reference standards, and responsible platforms to help teams monitor and improve performance.

Comprehensive IT Project Management Process: Product, Requirement, Development, Testing, Release, and Operations

This article provides a detailed overview of the end‑to‑end IT project management lifecycle, including product and requirement management, development and testing steps, version release procedures, and post‑release operations, offering practical guidance for teams to design and control their workflows.

Applying Clean Architecture to Front-End Migration: Refactoring a Large-Scale Review Platform from Vue2 to Vue3

The team refactored a high‑traffic Vue2 detail page to Vue3 using Clean Architecture, separating entities, use‑cases, adapters, and framework layers, while employing AST‑based tooling, comprehensive unit/E2E/visual tests, and a gray‑release strategy, resulting in reduced duplication, better test coverage, and a reusable migration pipeline.

Meituan Mini‑Program Testability Practices and Implementation

Meituan’s Tech Salon Session 77 describes how the company built a generic JavaScript‑hooking SDK packaged as an NPM module to give mini‑programs on platforms such as WeChat, Alipay and Kuaishou observable and controllable capabilities across UI, storage, network and system layers, enabling automated cache management, request mocking, state inspection and visual diff testing, which the ticket team leveraged to achieve over 30 % test scenario coverage, 100 % page coverage and discover hundreds of defects, while outlining future plans to stabilize and expand the framework.

Refactoring the Game Business Product Update MQ Consumer: Architecture, Design, and Implementation

This article details the background, problem analysis, and comprehensive refactoring plan for a game business's product update MQ consumer, outlining architectural redesign using Flyweight and Strategy patterns, phased implementation, testing strategies, idempotent handling, monitoring, and the resulting 50‑80% reduction in downstream interface calls.

Stabilizing Test Environments with a Trunk‑Based Strategy

This article outlines a comprehensive approach to improve test environment stability by introducing a trunk‑based environment as the default, detailing solution architecture, various testing scenarios, implementation steps, and monitoring practices to transition from unstable daily environments to a more reliable testing ecosystem.

Mastering Spring Boot Annotations: A Comprehensive Guide for Backend Developers

This article provides a thorough overview of Spring Boot's core, web, configuration, dependency injection, AOP, testing, security, transaction, scheduling, event, exception handling, property binding, and conditional annotations, complete with practical code examples for Java backend development.

Step‑by‑Step Guide to Building a Vue 3 Headless UI Component Library with pnpm, Vite, and TypeScript

This article provides a comprehensive, hands‑on tutorial for creating a Vue 3 Headless UI component library, covering project initialization, workspace configuration, ESLint and Git‑hook setup, TypeScript and Vite integration, unit testing with Vitest, documentation with VitePress, playground creation, monorepo building, and publishing to npm.

V-Model in Software Engineering: Verification & Validation Phases Explained

This article explains the V-model software development lifecycle, detailing its verification phases (requirements, design, coding) and validation phases (unit, integration, system, acceptance testing), along with five advantages and four disadvantages of the model.

10 Common Uses of pytest.mark.parametrize for Efficient Testing

The article presents ten practical examples of using pytest.mark.parametrize in Python, ranging from basic parameter lists and named parameters to nested parameters, type conversion, exception testing, fixture parametrization, large data sets, custom ID generation, and combining marks, illustrating how to write concise and maintainable test code.

Using Python Generator Functions for Efficient API Automation Testing

This article demonstrates how Python generator functions can be applied in API automation testing to process large data streams, batch requests, infinite sequences, file handling, dynamic test data generation, recursive file traversal, lazy calculations, data filtering, response processing, retry logic, and test report creation, thereby improving memory efficiency and test flexibility.

AREX: An Open‑Source Traffic Recording and Replay Platform for Enterprise‑Scale Testing

AREX is an open‑source traffic recording and replay platform created by Ctrip that enables comprehensive testing—from performance and regression to rapid issue fixing—by capturing real traffic across complex micro‑service environments, addressing challenges such as async context, non‑idempotent calls, authentication, time‑sensitivity, and cache consistency, and offering easy CI/CD integration and large‑scale deployment.

Advanced pytest Fixtures and Decorators for Test Setup, Skipping, Retries, Parametrization, and More

This article demonstrates how to use pytest fixtures and a collection of custom decorators to handle setup/teardown, conditional skipping, retry logic, parameterized tests, timing, error handling, logging, transaction management, API authentication, response validation, concurrency, data cleanup, performance monitoring, state checks, and test marking in Python testing.

AONE Serverless Quality Assurance: Design, Testing, and Monitoring

The article explains how AONE Serverless separates development and operations domains to enable independent iteration and lower costs, details a QA workflow—functional regression, performance testing, monitoring verification, reverse‑engineered interfaces, automated API traffic replay, and isolated pressure testing— and reports deployment build time cuts of 17% and overall deployment reductions up to 44%, while outlining challenges and future plans for layered automation and plugin‑based extensions.

Why UI Automation Stalls and How to Revive It: A Frontend Testing Playbook

This article examines the evolution of UI automation in a large‑scale frontend environment, detailing early expectations, framework choices, practical challenges, and a comprehensive set of process, tooling, and reporting improvements that together boosted test coverage, stability, and team efficiency while highlighting the ongoing trade‑offs between automation value and maintenance cost.

Comprehensive Guide to Writing Tests in Go: Unit, Benchmark, Example, and Fuzz Testing

This article provides a detailed tutorial on Go's testing framework, covering test classifications such as unit, benchmark, example, and fuzz tests, explaining naming conventions, file organization, test execution commands, parallel testing, coverage measurement, and how to integrate these practices into robust backend development workflows.

Comparison of Five Python Automation Testing Frameworks

This article compares five popular Python automation testing frameworks—Robot Framework, Pytest, UnitTest, Behave, and Lettuce—detailing their prerequisites, strengths, weaknesses, and suitability for different testing scenarios to help developers choose the right tool for functional, unit, or behavior‑driven testing.

Essential Backend Development Practices to Boost Efficiency and Scalability

Backend development underpins every software application, and mastering practices such as input validation, robust error handling, separation of concerns, and thorough testing and documentation ensures applications are secure, maintainable, and scalable, empowering developers to build resilient server‑side systems.

Refactoring a Complex Order Process with a Three‑Layer Interface and Strategy Template

This article analyzes the problems of a scattered, poorly‑designed order‑processing codebase, proposes a three‑layer interface combined with a strategy‑template pattern, walks through concrete Java implementations, testing and gray‑release safeguards, and shows how the redesign improves readability, maintainability, and extensibility.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.