Add fixtures.
Fixtures allow us to use a struct in combination with UTEST_F_SETUP and UTEST_F_TEARDOWN. This means we can instantiate a struct across multiple fixtures and use shared state between them all. The struct's fixture state is re-initialized for every testcase.
1 parent 30d4d6f commit c3664bddd79cd48c4742bcad54ca991f5f150ddb
@Neil Henning Neil Henning authored on 21 Mar 2016
Showing 3 changed files
View
test/test.c
View
test/test.cpp
View
utest.h