https://github.com/sinedied/ntk-unit
a one-header-file-based testing framework
https://github.com/sinedied/ntk-unit
Last synced: 2 months ago
JSON representation
a one-header-file-based testing framework
- Host: GitHub
- URL: https://github.com/sinedied/ntk-unit
- Owner: sinedied
- Created: 2012-01-03T13:44:41.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-03T13:47:26.000Z (almost 14 years ago)
- Last Synced: 2025-07-19T18:52:13.330Z (3 months ago)
- Language: C++
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
NTK/Unit is a minimalistic yet easily extensible unit testing framework.
The whole framework is self-contained in a single documented header file,
and thus can be used without any library installation.The code is designed to be portable and only use the standard c++ headers,
and does not make use of RTTI functions.It notably features:
- Test fixtures
- Test suites (with possible subsuites)
- Exception handling (with support for system exceptions, i.e. signals)
- Global timing
- Customizable reporting
- Simple and very compact syntax with the use of macros
- A bunch of assertions macros covering most needsThis release contains 2 files:
- test.hpp : the testing framework.
- test_example.cpp : a unit test example testing all the framework functions
using itself.The code has only been tested on MacOS X 10.6 with GCC 4.2 for now, but
should compile on any recent platform.NTK/Unit is released under the MIT license.