運行時通過命令行的FitNesse的測試,我得到一個ClassNotFound的異常從命令行運行FitNesse的測試
引起拋出java.lang.ClassNotFoundException:fitnesse.runner.testRunner
找不到主類:fitnesse.runner.TestRunner.Program將退出
請幫助
感謝
運行時通過命令行的FitNesse的測試,我得到一個ClassNotFound的異常從命令行運行FitNesse的測試
引起拋出java.lang.ClassNotFoundException:fitnesse.runner.testRunner
找不到主類:fitnesse.runner.TestRunner.Program將退出
請幫助
感謝
的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"
這是否也適用於DotNetTestRunner或者是這個只適用於java項目。 – 2012-07-31 21:53:52
.NET TestRunner也被棄用。 – 2012-09-09 03:11:41
我跟着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