[英]Running Fitnesse Tests from Command Line
When running the Fitnesse tests via command Line I am getting a ClassNotFound Exception 通过命令行运行Fitnesse测试时,我得到一个ClassNotFound异常
caused by Java.lang.ClassNotFoundException:fitnesse.runner.testRunner 由Java.lang.ClassNotFoundException引起:fitnesse.runner.testRunner
could not find the main class:fitnesse.runner.TestRunner.Program will exit 找不到主类:fitnesse.runner.TestRunner.Program将退出
Kindly help 请帮助
Thanks 谢谢
TestRunner is no longer supported. 不再支持TestRunner。 Use http://fitnesse.org/FitNesse.UserGuide.CommandLineRestCommands
使用http://fitnesse.org/FitNesse.UserGuide.CommandLineRestCommands
Update: link has changed - http://www.fitnesse.org/FitNesse.UserGuide.ControllingFitNesseFromTheCommandLine 更新:链接已更改 - http://www.fitnesse.org/FitNesse.UserGuide.ControllingFitNesseFromTheCommandLine
Update: link has changed again - http://fitnesse.org/FitNesse.UserGuide.AdministeringFitNesse.ControllingFitNesseFromTheCommandLine 更新:链接再次更改 - http://fitnesse.org/FitNesse.UserGuide.AdministeringFitNesse.ControllingFitNesseFromTheCommandLine
Excerpt from Fitnesse docs: 来自Fitnesse文档的摘录:
You can run any REST command (See Restful Services) from the command line by using the -c command line option as follows:
您可以使用-c命令行选项从命令行运行任何REST命令(请参阅Restful Services),如下所示:
java -jar fitnesse-standalone.jar -c
java -jar fitnesse-standalone.jar -c
This starts up fitnesse, runs the command, emits the output to standard out, and then exits.
这将启动fitnesse,运行命令,将输出发送到标准输出,然后退出。
Most often you will use this to run tests and/or suites from the command line as follows:
通常,您将使用此命令从命令行运行测试和/或套件,如下所示:
java -jar fitnesse-standalone.jar -c "MyTestPage?test&format=text"
java -jar fitnesse-standalone.jar -c“MyTestPage?test&format = text”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.