Skip to content

v0.0.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@keeferrourke keeferrourke released this 17 Apr 03:26
ad28eaa

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