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_cancel
removed; 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
meson
andninja
; good ol'make
is still there, but not recommended - Added Travis CI
Structs
- Renamed
testfn
torunner_t
- Added
test_t::begin
function pointer
Functions
- Renamed
suite_init
tosuite_new
- Renamed
suite_addtest
tosuite_add_test
- Renamed
newtest
torunner_new
- Added
tdd_runner_del
- Renamed
suite_stats
tosuite_get_stats
- Renamed
suite_delstats
tosuite_stats_del
- Renamed
test_start
totest_timer_start
- Renamed
test_done
totest_timer_end
- Renamed
test_t_init
totdd_test_new
- Renamed
test_t_del
totdd_test_del
- Added
test_fatal
macro
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.