如何在 FitNesse/Slim headless 中运行测试?

发布于 2024-11-29 00:57:03 字数 179 浏览 1 评论 0原文

我们正在考虑使用 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 技术交流群。

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

发布评论

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

评论(2

提笔落墨 2024-12-06 00:57:03

有一个非常简单的方法可以做到这一点。您可以从命令行运行 FitNesse 测试。您可以使用以下命令行来执行此操作:

java -jar lib/fitnesse.jar -c "FrontPage?suite&format=text" 

这将在 FrontPage 下运行所有​​测试,并以命令行友好的格式显示结果。如果将 FrontPage 更改为 FrontPage.MainSuite,它将仅运行该页面下的测试。

如果您有不同州的测试。也许其中一些已经开始但尚未完成。您可以向必须运行的测试添加套件标签,然后可以过滤运行的测试。如下所示:

java -jar lib/fitnesse.jar -c "FrontPage?suite&suiteFilter=MustBeGreen&format=text" 

这也可以使用 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:

java -jar lib/fitnesse.jar -c "FrontPage?suite&format=text" 

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:

java -jar lib/fitnesse.jar -c "FrontPage?suite&suiteFilter=MustBeGreen&format=text" 

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

素年丶 2024-12-06 00:57:03

Dan has it correct; but the User Guide is also posted online at:

http://fitnesse.org/FitNesse.UserGuide.ControllingFitNesseFromTheCommandLine

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