我安装了一个干净版本的 Fitnesse (v20121220) 和最新版本的 FitSharp (.net 4)。
我创建了一个健身测试页面,但无法运行测试 - 每当我尝试时,测试都会立即失败,标准输出中出现以下堆栈跟踪: -
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at fit.Runner.FitSocket.EstablishConnection(String request)
at fitnesse.fitserver.FitServer.EstablishConnection()
at fitnesse.fitserver.FitServer.Run(IList`1 CommandLineArguments)
at fitnesse.fitserver.FitServer.Run(IList`1 commandLineArguments, Memory memory, ProgressReporter reporter)
at fitSharp.Machine.Application.Shell.Run()
at fitSharp.Machine.Application.Shell.Execute()
at fitSharp.Machine.Application.Shell.RunInCurrentDomain(IList`1 commandLineArguments)
at fitSharp.Machine.Application.Shell.RunInNewDomain(AppDomainSetup appDomainSetup, IList`1 commandLineArguments)
并将以下错误作为内部异常: - 内部异常:
FitClient: external process terminated before a connection could be established.
我的根配置非常基本:-
!define COMMAND_PATTERN {%m -a "FullPathToAcceptanceTests.dll.config" -r fitnesse.fitserver.FitServer,C:\fitnesse\fitsharp\fit.dll %p}
!define TEST_RUNNER {c:\fitnesse\fitsharp\Runner.exe}
!path "FullPathToAcceptanceTests.dll"
显然 FullPathToAcceptanceTests 指向我的健身验收测试代码所在的位置。
我不明白为什么会发生这种情况 - 我之前使用过 Fitnesse / Fitsharp 没有问题,但这似乎并不想工作。