<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Thinking inside a bigger box - Latest Comments in Some FitNesse tricks: Classpath and debugging</title><link>http://thinkinginsideabiggerbox.disqus.com/</link><description></description><atom:link href="https://thinkinginsideabiggerbox.disqus.com/some_fitnesse_tricks_classpath_and_debugging/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 01 Sep 2012 16:52:18 -0000</lastBuildDate><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-637238693</link><description>&lt;p&gt;Hi, Krishna - I haven't been using FitNesse much the last two years and not at all last year. (Feels great, by the way) I think that Andy's approach is still the best and that it still works. Just add this to a FitNesse page:&lt;/p&gt;&lt;p&gt;!path {java.class.path}&lt;/p&gt;&lt;p&gt;This makes the page inherit the classpath that FitNesse was launched with.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johannes Brodwall</dc:creator><pubDate>Sat, 01 Sep 2012 16:52:18 -0000</pubDate></item><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-636281455</link><description>&lt;p&gt;Four years later, how do we get this working for the latest Fitnesse library?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">krishna</dc:creator><pubDate>Fri, 31 Aug 2012 23:39:20 -0000</pubDate></item><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-10721104</link><description>&lt;p&gt;Just built this on OS X with Intellij. Had to remove the quotes around the classpath elements and then it worked. Also seems like Intellij attached automatically when launching RunFitnesse in debug mode. Hit a breakpoint in InheritClasspathTestResponder, this without adding DebugTestResponder. Very nice, thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joe Hoover</dc:creator><pubDate>Wed, 10 Jun 2009 18:33:05 -0000</pubDate></item><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-7936995</link><description>&lt;p&gt;If you use&lt;br&gt;!path {java.class.path}&lt;br&gt;You get the classpath that fitnesse was called with, without the need for changing the fitnesse code.&lt;/p&gt;&lt;p&gt;Also, if you create a page with the following (eg. .DebugSettings)&lt;br&gt;!define COMMAND_PATTERN {java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044 -cp %p %m}&lt;/p&gt;&lt;p&gt;Then, on pages you want to debug, you can just add&lt;br&gt;!include .DebugSettings&lt;/p&gt;&lt;p&gt;not as nice as a Debug responder, but solves the problem without writing code for FitNesse.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Palmer</dc:creator><pubDate>Tue, 07 Apr 2009 10:13:07 -0000</pubDate></item><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-1798885</link><description>&lt;p&gt;Hei, Nils-Helge&lt;/p&gt;&lt;p&gt;Using plain old Fit is indeed an option that I considered, too. But now I am actually glad I didn't. I hope you'll like to try out the code from this article.&lt;/p&gt;&lt;p&gt;FitNesse is definitely not designed with embedding and extending in mind. But  when I was willing to dive into it, I found it wasn't that bad. I really wish my "trick" with writing my own main class was closer to the intended use, though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johannes Brodwall</dc:creator><pubDate>Thu, 27 Mar 2008 22:48:22 -0000</pubDate></item><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-1798889</link><description>&lt;p&gt;As the author of the fitnesse plugin that Ole Morten kindly enough has mentioned, I do agree with you that it is pretty obvious that FitNesse was not built with Maven in mind, and worse, it's practically impossible to customize! It's not modular and extensible at all (you wouldn't believe the troubles and hacks I had to go through to get that thing to work...)!&lt;/p&gt;&lt;p&gt;Anyway, you seem to have found a good solution for running FitNesse for a Maven project. I still think there's cases where the pom widget is useful, especially when having a common FitNesse server installation and multiple projects within it.&lt;/p&gt;&lt;p&gt;As for me, I've left FitNesse and use plain Fit instead. We use Excel spreadsheets as the source and convert them to HTML tables when the tests are run. Then our build run Fit with these converted HTML tables. It's fast, simple and more importantly, just what we need.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nils-Helge Garli Hegvik</dc:creator><pubDate>Thu, 27 Mar 2008 05:58:04 -0000</pubDate></item><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-1798886</link><description>&lt;p&gt;I share your philosophy. I want to run everything locally, including the fitnesse server. This is my startup script&lt;/p&gt;&lt;p&gt;java -cp fitnesse.jar;lib\fitnesse-pom-widget-1.0-SNAPSHOT.jar;lib\maven-embedder-2.0.4-dep.jar fitnesse.FitNesse -p 8091 -r FitNesseRoot -l logs -o -e 0&lt;/p&gt;&lt;p&gt;Guess you'd find a way to execute the fitness server from Eclipse, but I don't see why. It uses near to nothing of resources and don't need to be restarted to notice updates. A simple .bat or .sh is good enough.&lt;/p&gt;&lt;p&gt;RELOCATION&lt;br&gt;I presume you have your fixtures in source control, why not have fitnesse ialongside it? They definetly belong together.&lt;/p&gt;&lt;p&gt;/trunk/fitnesse&lt;br&gt;/trunk/fixtures (or wherever the fixtures are located)&lt;/p&gt;&lt;p&gt;Then you may use the relative path "!pom ../fixtures/pom.xml"&lt;/p&gt;&lt;p&gt;DEBUGGER&lt;br&gt;The option -html fitnesse.html in the debugger outputs the results in the same manner as pressing Test in the fitnesse page.&lt;/p&gt;&lt;p&gt;Sadly, there is no cigar with FitNesse. I say, use it to communicate requirements, supplement with a few test tables. It's a wiki, terrible to maintain and opposes refactoring. I've committed my share of sins. Do you have any rules/guidelines for this Johannes?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ole Morten H. Amundsen</dc:creator><pubDate>Mon, 24 Mar 2008 10:19:26 -0000</pubDate></item><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-1798883</link><description>&lt;p&gt;Hi, Ole Morten&lt;/p&gt;&lt;p&gt;Three reasons why I don't like solutions like the fitnesse-pom-widget:&lt;/p&gt;&lt;p&gt;1. You have to install fitnesse yourself. PLUS: You have to micky around with the installation. For me, maven is my only installer&lt;br&gt;2. You have to start up stuff with special commands and stuff. For me, Eclipse is my only application runner.&lt;br&gt;3. You still have to specify a path to the pom that will vary from workstation to workstation in your tests. For me, there is no changes when you relocate the workspace.&lt;/p&gt;&lt;p&gt;Close, but no cigar.&lt;/p&gt;&lt;p&gt;The debugger is nice, but the result of running the test won't be displayed in your web browser, right?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johannes Brodwall</dc:creator><pubDate>Sat, 22 Mar 2008 20:41:29 -0000</pubDate></item><item><title>Re: Some FitNesse tricks: Classpath and debugging</title><link>http://johannesbrodwall.com/2008/03/19/some-fitnesse-tricks-classpath-and-debugging/#comment-1798884</link><description>&lt;p&gt;Finally, I might assist you, Johannes! Nice work, but sadly, I think you're reinventing the weel here. I meant to write a blog post about this, including how to use the pom. No excuses!&lt;/p&gt;&lt;p&gt;We include the pom in the Fitnesse page by writing "!pom path_to_the_pom_he_fixtures_were_built_from/pom.xml". See &lt;a href="http://boss.bekk.no/fitnesse-pom-widget/usage.html" rel="nofollow noopener" target="_blank" title="http://boss.bekk.no/fitnesse-pom-widget/usage.html"&gt;http://boss.bekk.no/fitness...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Now you may set up a debugger in eclipse. Java Application-&amp;gt;new-&amp;gt;&lt;br&gt;Main class: fitnesse.runner.TestRunner&lt;br&gt;Arguments: localhost 8091 YourWikiPathToTestOrSuite -v -html fitnesse.html&lt;/p&gt;&lt;p&gt;Bonus tip to your many readers: add "-e 0" to the startup of your FitNesse server to avoid those dreadful zips. Isn't FitNesse intuitive?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ole Morten H. Amundsen</dc:creator><pubDate>Sat, 22 Mar 2008 16:27:46 -0000</pubDate></item></channel></rss>