[geary/wip/intermittitent-ci-test-failures-redux: 8/8] Add debug logging for calling test case setup/test/teardown methods
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/intermittitent-ci-test-failures-redux: 8/8] Add debug logging for calling test case setup/test/teardown methods
- Date: Thu, 14 Feb 2019 00:57:41 +0000 (UTC)
commit 3cae7ebbb278c1a5008a8a7007215e9b85b86af8
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]