Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Sure, easy to do. I'm assuming you're using the dotnet or dotnet2 test runner. I'm using the dotnet2 test runner, and here's how I've got it set up:</p> <p>First, when you !define your COMMAND_PATTERN, include -c suite.config. For instance, I have the following in root:</p> <pre><code>!define COMMAND_PATTERN {%m -c suite.config %p} !define TEST_RUNNER {..\..\bin\Debug\FitServer.exe} </code></pre> <p>suite.config goes in the same dir as fitnesse.jar:</p> <pre><code>&lt;suiteConfig&gt; &lt;fit.Settings&gt; &lt;appConfigFile&gt;..\..\MyProjectFolder\fitnesse\MyProjectName.config&lt;/appConfigFile&gt; &lt;/fit.Settings&gt; &lt;fit.Assemblies&gt; &lt;/fit.Assemblies&gt; &lt;fit.FileExclusions&gt; &lt;add&gt;^\.svn$&lt;/add&gt; &lt;/fit.FileExclusions&gt; &lt;fit.Namespaces&gt; &lt;/fit.Namespaces&gt; &lt;fit.CellHandlers&gt; &lt;/fit.CellHandlers&gt; &lt;fitlibrary.CellHandlers&gt; &lt;/fitlibrary.CellHandlers&gt; &lt;/suiteConfig&gt; </code></pre> <p>MyProjectName.config looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;appSettings&gt; &lt;add key="keyname" value="something" /&gt; &lt;/appSettings&gt; &lt;/configuration&gt; </code></pre> <p>You can make things easier for yourself if you use an absolute path for the appConfigFile. I started off with an absolute path, got things working, then switched to a relative path by trial and error.</p> <p>Note that I'm running my test runner from a non-standard location, which will affect the relative path in suite.config. The path is relative to your TEST_RUNNER location, NOT to suite.config or fitnesse.jar.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload