FitNesseRoot.Fitnesse.SuiteFitAcceptanceTests.content.txt Maven / Gradle / Ivy
!-
Fit Spec ific ation,
v1.1
Fit is a tool for improving c ommunic ation
between c ustomers, programmers, and
testers. It allows the c ustomer to desc ribe
his or her requirements in a way that c an be c hec ked
against the ac tual program.
The tec hnique Fit uses is c alled
"spec ific ation
by example." It allows c ustomers to
c reate a doc ument
with tables that desc ribe spec ific
examples of how the software should work. Fit looks at the doc ument
and c hec ks to
see if the software works the way the tables say it should.
Fit uses small programs, c alled
"fixtures," to c onnec t
tables to software. Programmers on the development team are responsible
for c reating those fixtures. Customers
are responsible for c reating the tables.
Testers work with both groups of people to help make sure that all situations
are adequately c overed. The three groups
work together, interac tively, to c reate
great software.
This doc ument, and the doc uments
it referenc es, desc ribes
Fit using spec ific ation
by example. It is, itself, an example of how to use Fit. If all the pass c ells
in the table below are c olored green, then you
c an be c onfident
that your c opy of Fit meets this spec ific ation.
Using Fit to test itself, as we do here, leads to c irc ular
logic that c an
be unraveled more easily by the c omputer than
by humans. To avoid a headac he,
ignore the fac t that this doc ument
is written in HTML or that the tables use Fit fixtures. Instead, just think of it as a regular doc ument--one
that happens to be c olored green and red.
Func tional c hanges
to Fit that are new in this version of the spec
are highlighted yellow. Layout, formatting, and other non-func tional
c hanges to the spec ific ation
are not highlighted.
Details
Fit knows how to do these things:
fat.Referenc eFixture
Desc ription
Loc ation
Result()
Note
Parse HTML doc uments
pass
Modify HTML doc uments
pass
Interpret tables using fixtures
inc omplete
Provide a c ommand-line interfac e
c li.html
inc omplete
Clic k the links for details about how Fit
does eac h of these things. This spec ific ation
is a work in progress and the fixtures and c ommand-line
interfac e portion are inc omplete. Implementers: you may ignore these sec tions
for now.
Fit is available for many programming languages. The sec tions
above apply to all implementations of Fit.
Extensions spec ific
to this implementation of Fit are desc ribed
here:
fat.Referenc eFixture
Desc ription
Loc ation
Result()
Implementation-spec ific
extensions
pass
Errata
Known errors and omissions, to be fixed in a future version:
- The
<wiki> tag is not spe
c ified.
- Parsing-related
errors are des
c ribed but the errors
arent spec ified.
- Nested
tables are not spe
c ified
- Argument
list (next to fixture name) is not spe
c ified.
- Parser
c an handle any XML heirarc hy, but
only <table>, <tr>,
<td> is spec ified.
- Files
are expe
c ted to be CP1252, but this is
not spec ified.
To Do
To look at in a future release:
·
Why is info text c oming
out with a line break when this spec is
run? (Bec ause
Word c reates empty c ells
with this markup: <p> </p>. Ac c omodate this?)
- Possible
bug: when a variable
c olumn has a blank c ell
(in a ColumnFixture), the value is filled in but
it isnt shown in grey.
- More
flexibility in
c harset handling.
Possible feature c hanges:
- Add
blank keyword?
- make fat.Referen
c eFixture
a standard fit fixture?
- Provide
a way for ColumnFixture to easily annotate a
c ell
(inc luding when it passes)
- Data
setup fixture, similar to RowFixture[?]
Change History
Changes in version 1.1:
·
HTML to text: Added support for class
attribute in MS Word <p> tag parsing
·
HTML to text: Clarified handling of
leading and trailing line breaks
·
Text to HTML: Changed handling of bac kwards
line feed
·
Fixture loading: Added spec ific
error messages when fixtures dont load
·
Standard annotations: Changed all HTML to
put quotes around c olor attributes
·
Standard annotations: Changed error and
info annotations to c onvert new text to
HTML.
·
Standard annotations: Changed wrong and
error annotations to strip mark-up from original c ell.
·
Standard annotations: Changed error annotation to use standard font size
for error message.
·
Malformed HTML Parsing: Changed unc losed table, tr, and td tags to generate an error.
·
ColumnFixture:
Changed headers to allow multiple words. (not yet spec ified.)
·
Fixture
loading: Added argument list by fixture name. (not yet spec ified.)
·
Parsing:
Added support for nested tables.
(not yet spec ified.)
Changes in version 1.0:
·
Rewrite of the spec .
·
HTML to text: Changed entity to c ombine
with other leading and trailing whitespac e.
·
HTML to text: Changed non-breaking spac e
c harac ter to not
c ombine with other internal whitespac e.
·
HTML to text: Added c onversion
of <br> and <p> tags to line-feed c harac ters.
·
HTML to text: Added c onversion
of smart quotes to regular quotes.
·
Text to HTML: Added c onversion
of line-feed c harac ters
to <br> tags.
·
Text to HTML: Added c onversion
of adjoining spac es to entities.
Initial version:
·
Experimental spec ific ation
c reated by Ward Cunningham
and Jim Shore .
fit.Summary
-!
----
!contents
© 2015 - 2024 Weber Informatics LLC | Privacy Policy