Releases: keeferrourke/libtdd
Releases · keeferrourke/libtdd
v0.0.2
The name of the game here is consistency!
This pre-release is gearing up for a real release once (wait for it) this test framework actually has unit tests.
Yeah, yeah... Oof. I didn't follow TDD when making a framework for TDD. That changes from here on out!
Misc changes
- Call to
pthread_cancelremoved; docs updated to suggest returning
when test_fail is called; this fixed a memory leak from the thread itself - Updated documentation
- In general everything is just shinier :)
Build system changes
- Migrated to
mesonandninja; good ol'makeis still there, but not recommended - Added Travis CI
Structs
- Renamed
testfntorunner_t - Added
test_t::beginfunction pointer
Functions
- Renamed
suite_inittosuite_new - Renamed
suite_addtesttosuite_add_test - Renamed
newtesttorunner_new - Added
tdd_runner_del - Renamed
suite_statstosuite_get_stats - Renamed
suite_delstatstosuite_stats_del - Renamed
test_starttotest_timer_start - Renamed
test_donetotest_timer_end - Renamed
test_t_inittotdd_test_new - Renamed
test_t_deltotdd_test_del - Added
test_fatalmacro
v0.0.1
Features:
- Simple, well documented API
- Multi-threaded (tests run in their own threads, with possibility to terminate early via
test_fail(t) - Catches, reports, and counts segmentation faults
- Easy to read test results (with optional compile-time colour support (
make lib DEFINE=-DUSE_COLOUR)
Currently in early stages of development. API may change in subsequent releases, but it is expected to remain mostly stable.