pyunit 的漂亮 html 报告

发布于 2024-07-17 13:30:04 字数 39 浏览 5 评论 0原文

你知道一个为 pyunit 创建漂亮的 html 报告的工具吗?

Do you know a tool for creating nice html reports for pyunit?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浮生面具三千个 2024-07-24 13:30:04

我建议如下:

  1. 使用 nose 运行测试
  2. 创建一个以 HTML 形式输出结果的鼻子插件。 鼻子示例代码有一个简单的 HTML 输出插件(https ://raw.github.com/nose-devs/nose/master/examples/html_plugin/htmlplug.py)。 您或许可以使用它,至少作为一个起点。

Nose插件文档:http://nose.readthedocs.org/en/latest/ index.html

另一种选择:

I suggest the following:

  1. Run your tests using nose
  2. Create a nose plugin that outputs results as HTML. The nose example code has a simple HTML output plugin (https://raw.github.com/nose-devs/nose/master/examples/html_plugin/htmlplug.py). You can probably use that, at least as a starting point.

Nose plug-in documentation: http://nose.readthedocs.org/en/latest/index.html

Another option:

欲拥i 2024-07-24 13:30:04

有一个为pyunit开发的简单HTMLTestRunner,这里是 链接

它的缺点是没有输出在控制台中,因为 sys.stdout 和 sys.stderr 被 HTMLTestRunner 捕获。 除了上面的以外,其他的对我来说都很好。

there has a simple HTMLTestRunner developed for pyunit, here is link

The shortage of it is there are no output in console, because sys.stdout and sys.stderr was captured by HTMLTestRunner. Except above, others works fine to me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文