Gennadiy Donchyts Just another WordPress weblog

1Dec/091

Using FitNesse under .NET without JRE

Not sure if anyone will use it but it was kind of funny thing to do. After playing with FitNesse (Function Integration Testing Framework) which is mainly developed in Java I check if it can be converted to .NET using IKVM and the trick seems to work, you can start server, edit pages and runs tests. It is simply packaged version of fitnesse.jar and .NET runner by by Mike Stockdale. ... uses pure Java version.

Download: fitnesse4net.zip 8.7Mb

Zip file contains only .NET binaries required to run FitNesse and small demo project containing a single class. No Java is required.

After starting run_server.cmd you have to wait until FitNesse will unpack all it's files into FitNesseRoot, then press refresh in browser. After you run demo test on a root page you should get something like this (the web page has been updated, see another blog post for a new version):

fitnesse-results

It works a bit slower compare to Java but still seems to be stable.

Directory structure:

fit4net-directory

fit4net
|
+---bin
|       fit.dll
|       fitnesse.exe ................ FitNesse all in one wiki/server
|       fitSharp.dll
|       IKVM.OpenJDK.Core.dll
|       IKVM.OpenJDK.Misc.dll
|       IKVM.OpenJDK.Security.dll
|       IKVM.OpenJDK.Text.dll
|       IKVM.OpenJDK.Util.dll
|       IKVM.OpenJDK.XML.dll
|       IKVM.Runtime.dll
|       Runner.exe .................. command-line test runner, fetches content from server
|       RunnerW.exe ................. same as previous, but with window
|
\---example
|   run_server.cmd
|
+---FitNesseRoot
|       content.txt
|       properties.xml
|
\---src
|   DemoFitNesseTests.csproj
|   DemoFitNesseTests.sln
|   DemoMultiplierBy2.cs
|
\---bin
\---Debug
DemoFitNesseTests.dll

Right now I'm struggling trying to integrate it with MSBuild / TeamCity, looks like nobody implemented it yet :( DONE