且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将健身页面添加到版本控制?

更新时间:2023-12-01 22:41:16

使用 -d 开关(在谷歌搜索中非常低调)

Fitnesse20081201>run -p 8080 -d c:/projects/MyProjectNeedsAcceptanceTests

这将在指定文件夹中创建一个名为 FitnesseRoot 的子文件夹(如果它不存在),其中包含运行所需的所有内容.

This will create a subfolder in the specified folder called FitnesseRoot if it doesn't already exist, with all the stuff it needs to run.

Fitnesse 应该起来了.切换到浏览器.继续创建您的页面.

Fitnesse should be up. Switch to your browser. Go ahead and create your pages.

  • 您创建的每个 Fitnesse 页面都有一个子文件夹.
  • 每个文件夹都有一个 content.txt(这是 wiki 内容)和一个 properties.xml(这是该页面的 Fitnesse 属性).
  • 所有子页面都是父页面文件夹下的子文件夹.
  • You will have a subfolder for every Fitnesse page you create.
  • Each folder would have a content.txt (which is the wiki content) and a properties.xml (which are the Fitnesse Properties for that page).
  • All subpages would be subfolders under the folder for the parent page.

目录和文件...您已完成第一次签入版本控制的设置.还要设置版本控制以忽略某些类型的文件

Directories and Files...You're all setup for your first check-in to version control. Also set up your version control to ignore certain types of files

  • FitnesseRoot/文件
  • FitnesseRoot/错误日志
  • *.zip

(.zip 文件是 Fitnesse 跟踪 wiki 页面编辑的方式.短期本地版本控制.像 svn、git、cvs 等的 VCS 应该为我们处理这个问题.所以我们不需要签入 zip 文件)

希望这是有道理的..如果不是,我建议您花 15 分钟时间听听 UncleBob 本人的以下截屏视频
来源:Robert Martin - Fitnesse 的版本控制和开发环境

Hope that made sense.. If not I suggest you take 15 mins off to listen to the following screencast from UncleBob himself
Source: Robert Martin - Version Control and Development Environment for Fitnesse