问题描述
我想开始使用对FitNesse的Windows Vista上的.NET。在我在网上找到所有的教程我被告知,执行run.bat文件,但我得到的时候下载最新版本是一个.jar文件。当我运行这一点,filestructure解包,我可以通过浏览。
现在,当我试图建立一个测试项目,根据我觉得我应该来定义的fitsharp.dll路径中的所有文档,但我不能在从成立filestructure任何地方找到该文件。 JAR文件。我在做什么错了?
I'm trying to get started with FitNesse for .NET on Windows Vista. In all tutorials I find on the web I'm told to execute the run.bat file, but all i get when downloading the latest release is a .jar-file. When i run this, the filestructure is unpacked and I can reach the fitnesse server by browsing to http://localhost.Now, when I'm trying to set up a test project, according to all documentation I find I'm supposed define the path to fitsharp.dll but I can't find this file anywhere in the filestructure that was set up from the .jar-file. What am I doing wrong?
推荐答案
http://fitnesse.org/ 下载FitNesse的罐子。
Download FitNesse jar from http://fitnesse.org/.
运行
java -jar fitnesse.jar
这将启动Web服务器并创建文件夹 FitNesseRoot
与维基内容。要检查它是否已经开始导航到的http://本地主机
- 你应该看到FitNesse的头版
It will start web server and create folder FitNesseRoot
with wiki contents. To check that it has started navigate to http://localhost
- you should see FitNesse front page.
编辑头版 - 只需添加类似的 HelloWorldTest 的底部并保存(必须是骆驼!)。
点击出现问号,并保存新的一页。
点击的属性的并确保网页类型是测试的
Edit front page - just add something like HelloWorldTest (must be camel case!) in the bottom and save.Click on the appeared question mark and save a new page.Click Properties and make sure Page type is Test.
下载 FitSharp
https://github.com/jediwhale/fitsharp一>,并解压到文件夹的 fitsharp 旁边的 FitNesseRoot
。
Download FitSharp
from https://github.com/jediwhale/fitsharp and extract it to folder fitsharp next to your FitNesseRoot
.
创建测试.NET项目,添加引用 fit.dll 和 fitSharp.dll 位于刚刚创建的 fitsharp 的文件夹中。
Create .Net project for tests, add references to fit.dll and fitSharp.dll located in just created fitsharp folder.
使用.NET编写一个简单的测试和编译。例如使用一个简单的柱灯作为http://fitnesse.org/FitNesse.UserGuide.FixtureGallery.BasicFitFixtures.ColumnFixture.测试表添加到我们的 HelloWorldTest 的页面。
Write a simple test in .Net and compile it. For example use a simple column fixture as described on http://fitnesse.org/FitNesse.UserGuide.FixtureGallery.BasicFitFixtures.ColumnFixture. Add test table to our HelloWorldTest page.
在您的FitNesse测试页的顶部(在本例中的 HelloWorldTest 的),输入:
On top of your FitNesse test page (in our example HelloWorldTest) enter:
!define COMMAND_PATTERN {%m -r fitnesse.fitserver.FitServer,fitsharp\fit.dll %p}
!define TEST_RUNNER {fitsharp\Runner.exe}
!path <path to your test assembly>
如果你点击测试
按钮,并没有看到结果的话,尽量使用 TEST_RUNNER
RunnerW.exe
进行故障排除。
If you click on Test
button and see no results then try to use TEST_RUNNER
RunnerW.exe
for troubleshooting.
下面是关于使用FitNesse的与.net一个伟大的书:http://fitnesse.s3.amazonaws.com/tdd_net_with_fitnesse.pdf
Here's a great book on using FitNesse with .Net: http://fitnesse.s3.amazonaws.com/tdd_net_with_fitnesse.pdf
这篇关于如何设置为FitNesse的使用.NET使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!