Skip to content

Releases: keeferrourke/libtdd

v0.0.2

17 Apr 03:26
ad28eaa
Compare
Choose a tag to compare
v0.0.2 Pre-release
Pre-release

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 and ninja; good ol' make is still there, but not recommended
  • Added Travis CI

Structs

  • Renamed testfn to runner_t
  • Added test_t::begin function pointer

Functions

  • Renamed suite_init to suite_new
  • Renamed suite_addtest to suite_add_test
  • Renamed newtest to runner_new
  • Added tdd_runner_del
  • Renamed suite_stats to suite_get_stats
  • Renamed suite_delstats to suite_stats_del
  • Renamed test_start to test_timer_start
  • Renamed test_done to test_timer_end
  • Renamed test_t_init to tdd_test_new
  • Renamed test_t_del to tdd_test_del
  • Added test_fatal macro

v0.0.1

20 Apr 13:47
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

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.