Fitnesse integration
Could you help with Fitnese (http://fitnesse.org/) integration with TC. I had this ability in Hudson and would be great to have the same in TC. As far as I see it does not support OTB.
May be you have any solution to parse results from fitnesse reports.
Thank you.
Please sign in to leave a comment.
Hi
It's not supported out of the box yet, but TeamCity allows to publish custom HTML reports in build results.
If' you're using Maven builds then it can be integrated via Trinidad plugin.
Also I saw a rather tricky solution with converting of XML reports into JUnit's format that's supported by TeamCity.
http://stackoverflow.com/questions/2225212/display-fitnesse-xml-reports-within-hudson-gui
http://andypalmer.com/2009/04/showing-fitnesse-test-results-in-hudson/
Please vote for this feature request in TW-2636.
Michael
Thank you for your answer. I already tried to convert results to JUnit format, it works, but it is not so suitable for use.
May be it would be useful for guys how will read this topic in the future - I have write simple plugin for Fitnesse integration to TeamCity https://github.com/EKibort/TeamCityFitnessePlugin
Eduard,
I have found your plugin and it looks like it's exactly what I need. However, I've not had any luck getting it installed on our Windows build server.
I've built the plugin using the "deploy.bat" file and it copies the .zip into the directory under %USERPROFILE%.
A few issues I see:
Any assistance you could provide would be greatly appreciated.
The Custom report option (plus creating a tab for the results.zip) + Teamcity messaging system (for publishing the test results) works very well, when integrating fitnesse and teamcity.
ziv shapira
Hi Rob,
You should place Fitnesse.zip to Plugins directory under the data directory and restart teamcity service.
You can import report as html , but you will not have reports on test page and other tests functionality of TC.
I misunderstood what "data directory" meant. I was doing all of the prescribed things on the "build agent" machines not the "build server" machine.
Thank you for the assistance everyone. If you hit cement (my head) hard enough, long enough, it will crack! :)
Eduard
I have posted this issue on GitHub but thought I would have more chance of getting help quicker if I post here too.
I have built the package and dropped it into the [Team City Data Directory] on the server. The plugin is listed in the Admin area as an external plugin but I don't see it in the list of build runners when I try to add a build step. I checked the logs TC and found the following exception:
Error loading class [Fitnesse.server.Controller] for bean with name 'TeamCityFitnesseController' defined in URL [file:/C:/TeamCity/temp/spring-Fitnesse6352418311010925379-spring.config.tmp.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Fitnesse/server/Controller : Unsupported major.minor version 51.0
It looks like there are some compatability problems with the plugin and TC 7.*. Any ideas what I need to do with the source code to solve this problem?
Mike
Be sure that you use Java 6 to build plugin. You should use java from TC (like "C:TeamCity\jre\bin\")
I know this is old, but I needed to solve this issue, but didn't have access to install plugins on the TeamCity server.
My approach was to create an XSLT within the TeamCity job (I used powershell to dump it into a file), then a second powershell step to apply the XSL transform.
I got the transform from here: https://woodybrood.github.io/articles/2012/01/26/Transforming-FitNesse-Results-to-Junit.html however there are a couple of typos there, so I've fixed them here.
My first powershell step just dumped the transform out to a file (alternatively you can just put the file into a common location on your buildagent, or put it into your VCS so it gets checked out as part of your build):
The second step is the following powershell script that applies that transform. Just note that you'll need to ammend paths/filenames to suit your own case:
Lastly, you then add a "Build Feature" item to your job, of type "XML Report Processing", and select "Ant JUnit", filename of "summary.xml" which it should pick up from your working folder.