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.
This commit is contained in:
Michael James Gratton 2018-03-09 11:58:02 +11:00
parent 50f73ff252
commit 15748cef03
31 changed files with 117 additions and 73 deletions

View file

@ -5,7 +5,7 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
class ConfigurationTest : Gee.TestCase {
class ConfigurationTest : TestCase {
private Configuration test_config = null;

View file

@ -8,7 +8,7 @@
// Defined by CMake build script.
extern const string _BUILD_ROOT_DIR;
public abstract class ClientWebViewTestCase<V> : Gee.TestCase {
public abstract class ClientWebViewTestCase<V> : TestCase {
protected V? test_view = null;
protected Configuration? config = null;

View file

@ -5,7 +5,7 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
public class ClientWebViewTest : Gee.TestCase {
public class ClientWebViewTest : TestCase {
public ClientWebViewTest() {
base("ClientWebViewTest");