Unity 是一个用于 C 语言的轻量级单元测试框架,提供了验证代码正确性所需的断言库、测试运行器和报告机制。它作为在 C 环境中组织和执行单元测试的核心测试基础设施。
throwtheswitch/unity 的主要功能包括:C++ Unit Testing, Assertion Macros, C Assertion Libraries, Embedded Software Validation, Embedded Test Runners, Unit Testing Frameworks, Data Comparison, Epsilon-Based Type Comparators。
throwtheswitch/unity 的开源替代品包括: doctest/doctest — doctest is a lightweight C++ unit testing framework and assertion library. It provides a single-header implementation… thomhurst/tunit — TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source… google/googletest — This project is a comprehensive C++ unit testing framework designed to verify code logic and identify regressions… protobuf-c/protobuf-c — Protocol Buffers implementation in C. philsquared/catch — Catch is a C++ testing toolset providing frameworks for unit testing, behavior-driven development, and… onqtam/doctest — doctest is a unit testing framework and assertion library for C++ delivered as a single-header library. It provides a…
TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source generation for test discovery and mock creation, ensuring compatibility with Native AOT and IL trimming by eliminating the need for runtime reflection and proxies. The framework provides specialized capabilities for integration testing, including the management of distributed application lifecycles, isolated database schemas, and the correlation of telemetry and logs across process boundaries via OTLP. It also includes an HTTP testing utility to intercept network exchanges and mock AP
doctest is a lightweight C++ unit testing framework and assertion library. It provides a single-header implementation that eliminates complex build dependencies, allowing developers to write and execute test cases directly within their source code. The framework is distinguished by its focus on compile-time performance and binary overhead. It uses conditional compilation guards to strip all testing logic and metadata from production binaries. Additionally, it features hierarchical subcases that re-execute parent setup code to isolate different execution paths within a single test case. Its c
This project is a comprehensive C++ unit testing framework designed to verify code logic and identify regressions through a suite of assertion macros, test fixtures, and execution runners. It automates the discovery and registration of test cases during static initialization, allowing developers to define isolated test environments that ensure repeatable and predictable conditions for every execution. The framework distinguishes itself through a sophisticated mock object library that enables the simulation of components and the enforcement of strict interaction requirements. By intercepting v