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



commit 579a9c9aea3c4376702c1f2f4ed866e0a8310226
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]