Tag
作者分享了为 ActivityPub 机器人框架(ActivityBot,NLnet 资助项目)编写单元测试时遇到的四大难题:用户名与域名校验、消息验证、HTTP 签名的生成与重放,以及与外部服务器的真实互操作测试。
The article argues that unit tests in software development primarily serve to mark territory and maintain code stability in collaborative environments, rather than effectively finding bugs, compared to hardware testing practices.
The article critiques change-detector tests in software development, advocating for behavior-based testing while acknowledging practical challenges in service-oriented systems.
This article reflects on the design of test assertions and matchers in software development, emphasizing their role in writing readable and efficient test code, particularly in Ruby.
The article continues the series on modernizing a 25-year-old minimal C++ unit testing framework, focusing on using inline variables and modules to fix issues with file-specific counters and header dependencies.
A developer argues that end-to-end testing is more important than unit tests in the age of AI coding agents, after an agent-coded refactor passed all unit tests but broke a critical feature that was only caught by manual end-to-end checks.
A tutorial covering various strategies for mocking network calls in Rust, using the example of a Kubernetes controller that emits events, with emphasis on not degrading production code for testability.
GoogleTest, Google's C++ test framework, has released version 1.18.0 which requires at least C++17, along with documentation updates and ongoing improvements.
Catch2 is a C++ unit testing framework that also provides micro-benchmarking and BDD macros, known for its natural syntax.