2012-07-09 179 views
1

运行时通过命令行的FitNesse的测试,我得到一个ClassNotFound的异常从命令行运行FitNesse的测试

引起抛出java.lang.ClassNotFoundException:fitnesse.runner.testRunner

找不到主类:fitnesse.runner.TestRunner.Program将退出

请帮助

感谢

回答

3

的TestRunner不再支持。使用http://fitnesse.org/FitNesse.UserGuide.CommandLineRestCommands

更新:链接已更改 - http://www.fitnesse.org/FitNesse.UserGuide.ControllingFitNesseFromTheCommandLine

更新:链接又变了 - http://fitnesse.org/FitNesse.UserGuide.AdministeringFitNesse.ControllingFitNesseFromTheCommandLine

摘自FitNesse的文档:

You can run any REST command (See Restful Services) from the command line by using the -c command line option as follows:

java -jar fitnesse-standalone.jar -c

This starts up fitnesse, runs the command, emits the output to standard out, and then exits.

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"

+0

这是否也适用于DotNetTestRunner或者是这个只适用于java项目。 – 2012-07-31 21:53:52

+0

.NET TestRunner也被弃用。 – 2012-09-09 03:11:41

+0

我跟着CommandLineRestCommands导向但是,由于FitNesse的构建#278(2013年2月16日),调用 'Java的罐子fitnesse.jar -c“页面名称?test'' 抛出一个 'java.lang.NoClassDefFoundError :org/apache/velocity/context/Context'。实际上,在省略'-c'选项时也会发生同样的情况。这不是错的吗?! – 2013-02-21 12:49:56

相关问题