[geary/wip/intermittitent-ci-test-failures-redux: 4/4] Add debug logging for calling test case setup/test/teardown methods



commit 12f7482e17d13af71b65a12eabaa7a8ae398956c
Author: Michael Gratton <mike vee net>
Date:   Thu Feb 14 11:45:15 2019 +1100

    Add debug logging for calling test case setup/test/teardown methods

 test/test-case.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/test/test-case.vala b/test/test-case.vala
index b90de697..1090696f 100644
--- a/test/test-case.vala
+++ b/test/test-case.vala
@@ -304,6 +304,7 @@ public abstract class TestCase : Object {
 
                public void set_up(void* fixture) {
             try {
+                debug("%s: setting up", this.name);
                 this.test_case.set_up();
             } catch (Error err) {
                 assert_no_error(err);
@@ -312,6 +313,7 @@ public abstract class TestCase : Object {
 
                public void run(void* fixture) {
             try {
+                debug("%s: running test", this.name);
                 this.test();
             } catch (Error err) {
                 assert_no_error(err);
@@ -320,6 +322,7 @@ public abstract class TestCase : Object {
 
                public void tear_down(void* fixture) {
             try {
+                debug("%s: tearing down", this.name);
                 this.test_case.tear_down();
             } catch (Error err) {
                 assert_no_error(err);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]