未验证 提交 b2587e35 编写于 作者: L Lukáš Doktor

Merging pull request 1458

* https://github.com/avocado-framework/avocado:
  Result plugins: also list them on "plugins" command
......@@ -30,6 +30,9 @@ UNKNOWN = '<unknown>'
class JSONResult(Result):
name = 'json'
description = 'JSON result support'
def _render(self, result):
tests = []
for test in result.tests:
......
......@@ -46,7 +46,9 @@ class Plugins(CLICmd):
(dispatcher.CLIDispatcher(),
'Plugins that add new options to commands (avocado.plugins.cli):'),
(dispatcher.JobPrePostDispatcher(),
'Plugins that run before/after the execution of jobs (avocado.plugins.job.prepost):')
'Plugins that run before/after the execution of jobs (avocado.plugins.job.prepost):'),
(dispatcher.ResultDispatcher(),
'Plugins that generate job result in different formats (avocado.plugins.result):')
]
for plugins_active, msg in plugin_types:
log.info(msg)
......
......@@ -27,6 +27,9 @@ from avocado.core.plugin_interfaces import CLI, Result
class XUnitResult(Result):
name = 'xunit'
description = 'XUnit result support'
UNKNOWN = '<unknown>'
PRINTABLE = string.ascii_letters + string.digits + string.punctuation + '\n\r '
......
......@@ -197,6 +197,9 @@ class HTMLResult(Result):
HTML Test Result class.
"""
name = 'html'
description = 'HTML result support'
@staticmethod
def _copy_static_resources(html_path):
module = 'avocado_result_html'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册