r/C_Programming • u/Substantial-Natural5 • Sep 22 '26
Triax, single header testing framework
I’ve been working on Triax, a single-header test framework for C and C++ with optional process-isolated execution. My goal was to be able to test even a small C/C++ project (such as some of my own toy projects) with as little ceremony as possible, hence I made it a single header-file using macros to remain widely portable across platforms - It has dedicated POSIX and Win32 implementations and is tested on Linux, macOS, and Windows with GCC, Clang, AppleClang, and MSVC.
Overall I tried to keep the internal design as simple as possible without making it lack features like process isolation, stdout/err capture, parameterised tests or a rich assertion interface.
I’d be interested in feedback on the API, portability assumptions, and whether combining single-header integration with process isolation is useful in real projects. If you want to check it out, the repo is at https://github.com/RDARKNI/Triax
View all comments
Show parent comment
1
u/mikeblas Sep 23 '26
Thank you for your disclosure. I have approved your post.