summaryrefslogtreecommitdiffstats
path: root/qtip/reporter/console
diff options
context:
space:
mode:
Diffstat (limited to 'qtip/reporter/console')
-rw-r--r--qtip/reporter/console/__init__.py15
-rw-r--r--qtip/reporter/console/timeline.j28
2 files changed, 23 insertions, 0 deletions
diff --git a/qtip/reporter/console/__init__.py b/qtip/reporter/console/__init__.py
new file mode 100644
index 00000000..02d63288
--- /dev/null
+++ b/qtip/reporter/console/__init__.py
@@ -0,0 +1,15 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+
+from qtip.reporter.base import BaseReporter
+
+
+class ConsoleReporter(BaseReporter):
+ """report result to console"""
diff --git a/qtip/reporter/console/timeline.j2 b/qtip/reporter/console/timeline.j2
new file mode 100644
index 00000000..9c18a996
--- /dev/null
+++ b/qtip/reporter/console/timeline.j2
@@ -0,0 +1,8 @@
+{% title %}
+{% for phase in phases %}
+{{ phase.name|upper }}{{ "TIME" }}
+{% for cp in phase.checkpoints %}
+{{ cp.name }}{{ cp.timestamp}}
+{% endfor %}
+{% endfor %}
+Total: {{ total }}