Commit graph

5 commits

Author SHA1 Message Date
Michael James Gratton
f78939ce00 Push GResource URL for test data down so it's accessible to all tests. 2018-05-19 09:26:09 +10:00
Michael James Gratton
587e4e7596 Add TestCase.assert_null_string method. 2018-05-08 12:25:03 +10:00
Michael James Gratton
598f1a5e89 Increase len of non-truncated strs that TestCase.assert_string reports. 2018-04-27 12:37:13 +10:00
Michael James Gratton
712088061b Add a mock object mixin that can check call expectations on mocks.
* test/mock-object.vala: Add initial mock object implementation.

* test/test-case.vala; Add some useful high level assertion functions.
2018-04-07 10:02:18 +10:00
Michael James Gratton
15748cef03 Tidy up unit test infrastructure and mock classes.
* test/api/*.vala: Renamed files that contained mock objects to *-mock.vala,
  not *-test.vala.

* test/testcase.vala: Renamed to test-case.vala for consistency, remove
  TestCase class from Gee package since that's really not true. Clean up
  code for consistency.

* test/meson.build, test/CMakeLists.txt: Split TestCase compilation out
  into a separate test lib.
2018-04-07 09:41:18 +10:00
Renamed from test/testcase.vala (Browse further)