如何在 FitNesse/Slim headless 中运行测试?
我们正在考虑使用 FitNesse/Slim。
但是有没有一种方法可以启动所有书面测试,而无需浏览网页并手动启动每个测试?
如果有一个一劳永逸的按钮可以点击就足够了。
因此,要么从命令行启动所有测试(当然还有报告),要么使用网页上的按钮启动。
这可行吗?
提前致谢
we are considering to use FitNesse/Slim.
But is there a way to start all written Tests without browsing the webpage and starting each manually ?
It would be sufficient if there is a one-start-all kind of button somewhere to click.
So either starting all tests from command line (with a report of course) or with on button from the webpage.
Is this doable ?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个非常简单的方法可以做到这一点。您可以从命令行运行 FitNesse 测试。您可以使用以下命令行来执行此操作:
这将在 FrontPage 下运行所有测试,并以命令行友好的格式显示结果。如果将 FrontPage 更改为 FrontPage.MainSuite,它将仅运行该页面下的测试。
如果您有不同州的测试。也许其中一些已经开始但尚未完成。您可以向必须运行的测试添加套件标签,然后可以过滤运行的测试。如下所示:
这也可以使用 ANT java 任务来完成。
假设您有当前版本的fitnesse并在端口8080上运行,以下链接将带您进入包含更多详细信息的页面:http //localhost:8080/FitNesse.UserGuide.ControllingFitnesseFromTheCommandLine
There is a very easy way to do that. You can run FitNesse tests from the command line. You do this by using the following command line:
This will run all tests under the FrontPage and show the results as they happen in a command line friendly format. If you change FrontPage to FrontPage.MainSuite, it will run only the tests under that page.
If you have tests that are in different states. Maybe some of them are started but are not done yet. You can add a Suite Tag to the tests that must run, then you can filter the tests that are run. that would look like the following:
This is also possible to do using an ANT java task.
Assuming you have a current version of fitnesse and have it running on port 8080, the following link will take you to a page with more details: http://localhost:8080/FitNesse.UserGuide.ControllingFitnesseFromTheCommandLine
丹说得对;但用户指南也在线发布:
http://fitnesse.org/FitNesse.UserGuide.ControllingFitNesseFromTheCommandLine
Dan has it correct; but the User Guide is also posted online at:
http://fitnesse.org/FitNesse.UserGuide.ControllingFitNesseFromTheCommandLine