(We will intermix “fix” and “fixt” and “fixture.)
fitness runs with 2 JVM
* a long term infra jvm
* a jvm launched for the system under test
FIT system interprets HTML inbound and outbound. Fitnesse wraps FIT.
set commission rate -> setCommissionRate() will be called.
Q: automated build?
A: ant can trap the fit failures
Q: cvs?
A: fitness has versions for each page
Q: books on fit tricks
A: it may not sell, since the fitness guys did good documentation(?)
— 5 types of colors
* green: expected = actual
* red: obvious
* yellow: a broken (not found) fixture — Thanks to blog reader comment below.
* grey background: See the top summary saying “5 ignored” meaning “5 table cells ignored”. nothing-to-run. expected will show ……………
good for comments
We should leave “expected” output header empty.
* grey text: expected — we don’t care. Actual will show.
Good for debugging.
We should leave “expected” output header empty.
Q: Just want to execute a method and the result is not important (or the method is void)?
A: use the SetUpFixture instead (see http://www.fitnesse.info/fixturegallery:fitlibraryfixtures:setupfixture).
A: The ColumnFixture will also allow you to just print the result of the calculation, not testing it.
A: empty cell in a fitnesse table? Try it
—- various fixtures —-
one table => one fixture class. For doFixture, one page => one fixt class. Stateful fix
column/row fixt need one fixt class per TABLE; do fixt need a fixt class per PAGE. That’s the norm. However, a doFix can also instantiate a rowFix, like Peter Walker showed.
— col fixt —
one input column => one field
one output column => one method
————-
— testing
Q: How do I know what type of ‘error’ matched my expected ‘error’?
A: provide another method that opens the exception…
Q: how to share an object between 2 column fixtures on a page, so that first fixt populates it for 2nd fixt?
A: use a new class to hold a static instance to the object
Q: other output columns for an error row?
A: leave blank
Q: how to say expected = null?
A: just spell out n u l l
Q: what if an “expected” is in camel case and confuses fitness
A: escape it with ! or “!-…-!”
Q: use fit to test non-public stuff?
A: not designed for that. try parallel tree
— wiki
Q: save the editor?
A: alt-S
Q: collapse or hide a table?
A: http://localhost/FitNesse.QuickReferenceGuide
Q: comment?
A: see notes on grey-background
Q: comment at end or elsewhere?
A: yes
!contents // will render to a table of links