在 .net 中使用 slim Fitnesse 的分步教程
有人知道在 .net 中使用 slim Fitnesse 的分步教程吗?
现在,我设法在 localhost:3434 上运行 slim Fitnesse 网站
,并将 fitSharp 插件解压到 c:/fitSharp 中
,但我不知道接下来会发生什么
anybody knows some step by step tutorial for using slim fitnesse in .net ?
for now I managed to run the slim fitnesse website on my localhost:3434
and I unziped the fitSharp plugin in c:/fitSharp
but I have no idea what's next
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
FitNesse 是一个wiki,其中包含可以执行系统测试的表格。然后 Tables 将告诉 FitNesse 创建一些类,对它们执行一些操作,并检查结果。
例如,为了使用 .NET,您只需告诉 FitNesse 如何与 .NET 链接以及要加载哪些 .NET 程序集。没有别的了。 .NET 项目可以是一个简单的类库,根本不需要了解 FitNesse。
需要工具
示例步骤
下载FitNesse和fitSharp
(在此示例中,fitSharp 已提取到
D:\fit\fitSharp\release.1.9.net.35\
)从命令行启动 FitNesse:
使用以下命令创建并编译 C# 类库项目:
浏览到 http://localhost:8080/ 然后单击标题旁边的“[添加子项]”并添加“测试”页面。
输入如下所示的 wiki 页面内容(更新路径):
注意“!”
!|import|
之前是为了避免“ClassLibrary1”被视为 wikiword。保存,然后单击左侧菜单中的“测试”。
FitNesse 将加载程序集,创建类的实例,按照命名约定映射设置一些属性,最后检查一些属性。
另请参阅
FitNesse is a wiki with tables that can be executed to do system testing. Tables will then tell FitNesse to create some classes, do some operations on them, and check the result.
In order to work with .NET for example, you simply need to tell FitNesse how to link with .NET and which .NET assemblies to load. Nothing else. The .NET project can be a simple class library with no knowledge of FitNesse at all.
Requires tools
Sample steps
Download FitNesse and fitSharp
(in this example fitSharp has been extracted to
D:\fit\fitSharp\release.1.9.net.35\
)Start FitNesse from the command-line:
Create and compile a C# Class Library project with:
Browse to http://localhost:8080/ then click '[add child]' next to the title and add a 'Test' page.
Type in the wiki page content like below (update the paths):
Note the '!' before
!|import|
is to avoid 'ClassLibrary1' to be seen as a wikiword.Save it, and click "Test" in the left menu.
FitNesse will load the assembly, create an instance of your class, set some properties by following the naming convention mapping, and finally check some properties.
See also
在你的情况下这会很有用:
http://fitsharp.github.com/Slim/GettingStarted.html
否则你应该考虑:
http://schuchert.wikispaces.com/Acceptance+Testing.UsingSlimDotNetInFitNesse
in your case this will be useful:
http://fitsharp.github.com/Slim/GettingStarted.html
else you should consider:
http://schuchert.wikispaces.com/Acceptance+Testing.UsingSlimDotNetInFitNesse