<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Object Mentor Blog: Using Band XI's FitNesse Plugin for Eclipse</title>
    <link>http://blog.objectmentor.com/articles/2008/05/16/using-band-xis-fitnesse-plugin-for-eclipse</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Using Band XI's FitNesse Plugin for Eclipse</title>
      <description>&lt;p&gt;Our friends at &lt;a href="http://www.bandxi.com"&gt;Band XI&lt;/a&gt; have an Eclipse &lt;a href="http://www.bandxi.com/fitnesse/index.html"&gt;plugin&lt;/a&gt; for &lt;a href="http://www.fitnesse.org"&gt;FitNesse&lt;/a&gt;. I spent a few hours trying it out for a client. Here are some notes to help you use it.&lt;/p&gt;


	&lt;p&gt;Band XI&amp;#8217;s plugin makes it easy to run FitNesse from within Eclipse and to edit the Java code and FitNesse pages in one place. Hence, no more switching between windows while you&amp;#8217;re making your acceptance tests pass.&lt;/p&gt;


	&lt;p&gt;The &lt;a href="http://www.bandxi.com/fitnesse/download.html"&gt;download and installation&lt;/a&gt; page describes how to get started. While it only lists support for Eclipse 3.1 and 3.2, it seems to work fine in Eclipse 3.3 and 3.4 M7.&lt;/p&gt;


	&lt;p&gt;After you have installed the plugin, you will have two new toolbar buttons, one to start and stop a local FitNesse server and one to start and stop a remote server.&lt;/p&gt;


	&lt;p&gt;You configure where these servers are located in the &lt;strong&gt;Preferences &amp;gt; FitNesse&lt;/strong&gt; page. These settings apply for the whole workspace. It might be nice to be able to configure them on a project by project basis, but that&amp;#8217;s not supported (and maybe not that important, either).&lt;/p&gt;


	&lt;p&gt;You also get a new project option in the &amp;#8220;&lt;strong&gt;New&lt;/strong&gt;&amp;#8221; wizard. &lt;strong&gt;Java &amp;gt; FitNesse &amp;gt; FitNesse Example Project&lt;/strong&gt; creates a new Java project with &lt;strong&gt;src&lt;/strong&gt;, &lt;strong&gt;FitNesseRoot&lt;/strong&gt; and &lt;strong&gt;fixtures&lt;/strong&gt; source directories. The include all the standard example acceptance tests and code that comes with the FitNesse download.&lt;/p&gt;


	&lt;p&gt;I encountered a little oddity the first time I started the local server by clicking the toolbar button. The usual front page, with links for the  examples, manual, &lt;em&gt;etc.&lt;/em&gt; weren&amp;#8217;t shown on the FitNesse front page.&lt;/p&gt;


	&lt;p&gt;I determined that this happens because the default &lt;strong&gt;FitNesseRoot&lt;/strong&gt; in the preferences is &amp;#8221;.&amp;#8221;. Instead, start the server the first time by right-clicking on the &lt;strong&gt;FitNesseRoot&lt;/strong&gt; folder, then select the &lt;strong&gt;FitNesse&lt;/strong&gt; menu and the &lt;strong&gt;Launch FitNesse runtime on this root folder&lt;/strong&gt; option.  From then on, it will launch with this folder as the default, until you select a different one.&lt;/p&gt;


	&lt;h2&gt;Using your own FitNesse installation and projects&lt;/h2&gt;


	&lt;p&gt;Here&amp;#8217;s what I did to work with existing projects and use a separate FitNesse installation outside of an Eclipse project.&lt;/p&gt;


	&lt;p&gt;If you have another project with the &lt;strong&gt;FitNesseRoot&lt;/strong&gt; folder, you can use it as just described (&lt;em&gt;i.e.,&lt;/em&gt; using the context menu).&lt;/p&gt;


	&lt;p&gt;Otherwise, go to the &lt;strong&gt;Preferences &amp;gt; FitNesse&lt;/strong&gt; page and paste the full path of your alternative &lt;strong&gt;FitNesseRoot&lt;/strong&gt; in the &amp;#8220;local root directory&amp;#8221; field. Be sure to delete the &amp;#8221;.&amp;#8221; value that is present by default and also watch for spaces before and after the string. It appears that they aren&amp;#8217;t removed, causing mysterious behavior&amp;#8230;&lt;/p&gt;


	&lt;p&gt;To build fixtures in your Java project, add the &lt;strong&gt;&lt;span class="caps"&gt;FIT&lt;/span&gt;_LIB&lt;/strong&gt; and &lt;strong&gt;&lt;span class="caps"&gt;FITNESSE&lt;/span&gt;_LIB&lt;/strong&gt; &amp;#8220;variables&amp;#8221; (defined by the plugin) to the Java build path for your project (using the project properties dialog). The default values of these environment variables should be fine unless you are running a different version of &lt;span class="caps"&gt;FIT&lt;/span&gt; or FitNesse in your separate installation (in which case you can change the values as needed).&lt;/p&gt;


	&lt;p&gt;Finally, set your class path in your FitNesse pages to point to the correct directory for the compiled classes. For example,&lt;/p&gt;


&lt;blockquote&gt;&lt;code&gt;!path /home/me/projects/workspace/MyFitProject/bin&lt;/code&gt;&lt;/blockquote&gt;

	&lt;p&gt;That should do it!&lt;/p&gt;</description>
      <pubDate>Fri, 16 May 2008 17:22:22 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:20d4f070-1129-46e5-b5da-501f4af145fa</guid>
      <author>Dean Wampler</author>
      <link>http://blog.objectmentor.com/articles/2008/05/16/using-band-xis-fitnesse-plugin-for-eclipse</link>
      <category>FitNesse</category>
      <category>Eclipse</category>
    </item>
    <item>
      <title>"Using Band XI's FitNesse Plugin for Eclipse" by FLV extractor</title>
      <description>&lt;p&gt;we will contact Band XI to upload it. Unfortunately conFit doesn&#8217;t work very reliable with Eclipse Ganymede&lt;/p&gt;</description>
      <pubDate>Thu, 08 Apr 2010 01:31:05 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:ca740188-10ea-4c6b-a4cc-eddbde97d4db</guid>
      <link>http://blog.objectmentor.com/articles/2008/05/16/using-band-xis-fitnesse-plugin-for-eclipse#comment-9357</link>
    </item>
    <item>
      <title>"Using Band XI's FitNesse Plugin for Eclipse" by corset prom dresses</title>
      <description>&lt;p&gt;Hence, no more switching between windows while you&#8217;re making your acceptance tests pass.&lt;/p&gt;</description>
      <pubDate>Sun, 22 Feb 2009 12:54:50 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:eb25624c-ece7-48e9-a2b4-acc81f6c82b4</guid>
      <link>http://blog.objectmentor.com/articles/2008/05/16/using-band-xis-fitnesse-plugin-for-eclipse#comment-2716</link>
    </item>
    <item>
      <title>"Using Band XI's FitNesse Plugin for Eclipse" by Daniel Speicher</title>
      <description>&lt;p&gt;We (University of Bonn) created a version of the plug-in that disables FitNesse&amp;#8217;s own version control. It&amp;#8217;s simple once you find the place to pass the additional command line parameter. If there is more interest, we will contact Band XI to upload it. Unfortunately conFit doesn&amp;#8217;t work very reliable with Eclipse Ganymede, so there would be more work to do&amp;#8230; No promises about that. Contact me, if you need our version.&lt;/p&gt;</description>
      <pubDate>Tue, 30 Dec 2008 20:45:14 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:cde81455-301d-4a4b-b822-9ef1c900d0b2</guid>
      <link>http://blog.objectmentor.com/articles/2008/05/16/using-band-xis-fitnesse-plugin-for-eclipse#comment-2300</link>
    </item>
    <item>
      <title>"Using Band XI's FitNesse Plugin for Eclipse" by Matthew Hayden</title>
      <description>&lt;p&gt;Couple of issues I&amp;#8217;m having with this are being conter productive to having this plug-in the first place!&lt;/p&gt;


	&lt;p&gt;I assumed the reason for this plug in was to bring your FitNesse tests under version control and all the lovely benefits of having an IDE. Thing is, there&amp;#8217;s no option to disable FitNesse&amp;#8217;s own version control system anywhere! I assume that the plug-in instantiates the server directly, there seems to be all the libraries present in the plug-ins folder and all you are required to supply is a FitNesseRoot. I need to be able to change the arguments.&lt;/p&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:58:57 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:6eca771f-cf53-4d6b-91ec-46228bba727e</guid>
      <link>http://blog.objectmentor.com/articles/2008/05/16/using-band-xis-fitnesse-plugin-for-eclipse#comment-2209</link>
    </item>
  </channel>
</rss>
