-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Thanks for your comment. I've encountered people who talk about non-distributed SOA. I think that is an idea that is totally boring, as it says nothing that hasn't been said for twenty...
- In the text you, like most I think, define services to be distributed. I do not understand why everybody i
- Hi, Eve Thanks for the offer. Let me know if there's any way I can make it easier. Do you think I should consolidate all the articles into one, for example?
- I'd be more than happy to read drafts, run through example code, and whatnot. I've done a little bit of Rails work, but I'm enough of a noob that I'll be able to give good feedback...
- I've never had much luck with the precreated keys. But then again, I use the convention of a null-key to indicate unsaved objects, so I'd run into other problems. FWIW, it sounds like your...
Jump to original thread »
On my project, we use Maven to build our software and FitNesse to write functional specifications. However, it was obvious that FitNesse wasn’t designed by Maven-fans. When I use Maven, I already have control over my classpath, and specifying it in every FitNesse test gets to be
... Continue reading »
8 months ago
We include the pom in the Fitnesse page by writing "!pom path_to_the_pom_he_fixtures_were_built_from/pom.xml". See http://boss.bekk.no/fitnesse-pom-widget/usage.html
Now you may set up a debugger in eclipse. Java Application->new->
Main class: fitnesse.runner.TestRunner
Arguments: localhost 8091 YourWikiPathToTestOrSuite -v -html fitnesse.html
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?
8 months ago
Three reasons why I don't like solutions like the fitnesse-pom-widget:
1. You have to install fitnesse yourself. PLUS: You have to micky around with the installation. For me, maven is my only installer
2. You have to start up stuff with special commands and stuff. For me, Eclipse is my only application runner.
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.
Close, but no cigar.
The debugger is nice, but the result of running the test won't be displayed in your web browser, right?
8 months ago
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
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.
RELOCATION
I presume you have your fixtures in source control, why not have fitnesse ialongside it? They definetly belong together.
/trunk/fitnesse
/trunk/fixtures (or wherever the fixtures are located)
Then you may use the relative path "!pom ../fixtures/pom.xml"
DEBUGGER
The option -html fitnesse.html in the debugger outputs the results in the same manner as pressing Test in the fitnesse page.
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?
8 months ago
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.
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.
7 months ago
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.
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.