是否有针对黄瓜场景/功能的测试用例文档生成器(测试用例?)

发布于 2024-10-07 15:22:18 字数 292 浏览 0 评论 0原文

我想要一个格式良好的 HTML 页面/目录来描述我们所有的 Cucumber 测试用例(场景)。

我熟悉 Cucumber 的 HTML 格式化程序......这非常适合显示测试结果结果,但我正在寻找一些不同的东西......我希望它简单地显示什么测试用例都有,并且能够看到步骤。

本质上我正在寻找类似 rdoc 的东西,但它应该从 .feature 文件生成测试用例文档。此外,我希望它关闭某种标记格式以将其用作测试用例 ID,并使用它来链接到各种工件,例如测试用例运行/结果。

有人知道这样的事情吗?

I want to have an nicely formatted HTML page/directory which describes all of our cucumber test cases (scenarios).

I am familiar with the HTML formatter for cucumber.... which is great for showing test results, but I'm looking for something a little different.... I want it to simply show what the test cases are, and be able to see the steps.

Essentially I am looking for something like rdoc, but it should generate test case documentation from .feature files. Additionally I'd like to have it key off a certain tag format to use that as a test case ID, and use that to link to various artifacts like test case runs/results.

Anyone know of something like this?

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

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

发布评论

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

评论(2

清秋悲枫 2024-10-14 15:22:18

features2html 可以执行您想要的操作,但 testid 跟踪标记除外。

我写了它,随意使用它,以任何你喜欢的方式。也非常欢迎您的贡献。

从描述来看:

什么是features2html?

features2html 是一个创建基于 HTML 的文档的简单脚本
来自黄瓜的特征。由此产生的布局也适用于
从您最喜欢的网络浏览器打印为 PDF。

请注意,文档是从源 Cucumber 生成的
功能文件,而不是来自测试结果(有很多
其他可以做到这一点的工具)。

当你想创建一个漂亮的需求时,使用 features2html
规范,您可以通过电子邮件发送给您的客户。您可以重点关注
编辑实际的功能文件并让 features2html 制作
向您的客户展示的功能。

features2html does what you want, except for the testid tracking tag.

I wrote it, feel free to use it in whichever way you like. Contributions are also very welcome.

From the description:

What is features2html?

features2html is a simple script that creates HTML based documentation
from Cucumber features. The resulting layout is also suitable for
printing as PDF from your favorite web browser.

Note that the documentation is generated from the source Cucumber
feature files, and NOT from the test results (there are plenty of
other tools that can do that).

Use features2html when you want to create a nice looking requirements
specification, that you can email to your customer. You can focus on
editing the actual feature files and let features2html make the
features presentable to your customers.

忘年祭陌 2024-10-14 15:22:18

它并没有涵盖您要求的所有内容,但请看一下 Relish:http://relishapp.com/

It doesn't cover everything you ask for, but have a look at Relish: http://relishapp.com/

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