Author image Tony Byrne

Changes for version 0.07

  • all calls to subs in Test::C2FIT-Packages is now done in the "method" style, e.g. pkg->subname and not pkg::subname (as only this style allows usage of static methods in subclasses)
  • all constructor calls now pkg->new instead of new pkg()
  • error handling in all Test::C2FIT classes now consistently try/catch/otherwise
  • unicode-characters handling in the spec (esp. nbsp ( )) modified. Perl creates internally (at least under 5.8.8) utf8 byte sequences. Input files are expected to be in iso-8859-* or windows-1252 so these characters may be encoded by a single byte. Therefore, a bit unpretty handling was implemented
  • new makefile-target my_tidy - formats
  • further tests in the t directory added

Modules

A direct Perl port of Ward Cunningham's FIT acceptance test framework for Java.
An action fixture interprets rows as a sequence of commands to be performed in order.
A ColumnFixture maps columns in the test data to fields or methods of its subclasses.
a runner class operating on (plain) html files.
Base class of all fixtures. A fixture checks examples in a table (of the input document) by running the actual program. Typically you neither use this class directly, nor subclass it directly.
A type adapter capable of checking equality of two array-refs.
Parsing of html source, filtering out contents of arbitrary tags.
A RowFixture compares rows in the test data to objects in the system under test. Methods are invoked on the objects and returned values compared to those in the table. An algorithm matches rows with objects based on one or more keys. Objects may be missing or in surplus and are so noted.
A type adapter capable of checking float numbers
Base class of all TypeAdapters.
a runner class operating on (wiki) html files.

Provides

in examples-perl/lib/FilteredData.pm
in examples-perl/lib/NullFkWrapper.pm
in examples-perl/lib/NullValueTest.pm
in examples-perl/lib/ParseEmptyTagsTest.pm
in examples-perl/lib/ParseEmptyTagsTest.pm
in examples-perl/lib/RowsetFilter.pm
in lib/Test/C2FIT/Fixture.pm
in lib/Test/C2FIT/Exception.pm
in lib/Test/C2FIT/GenericAdapter.pm
in lib/Test/C2FIT/ParseException.pm
in lib/Test/C2FIT/Fixture.pm
in lib/Test/C2FIT/ScientificDouble.pm
in lib/Test/C2FIT/Summary.pm
in lib/Test/C2FIT/TimedActionFixture.pm
in lib/Test/C2FIT.pm
in spec/fat/Test/C2FIT/fat/AnnotationFixture.pm
in spec/fat/Test/C2FIT/fat/DocumentParseFixture.pm
in spec/fat/Test/C2FIT/fat/ExampleFixture.pm
in spec/fat/Test/C2FIT/fat/FixtureLoadFixture.pm
in spec/fat/Test/C2FIT/fat/FixtureNameFixture.pm
in spec/fat/Test/C2FIT/fat/HtmlToTextFixture.pm
in spec/fat/Test/C2FIT/fat/NotAFixture.pm
in spec/fat/Test/C2FIT/fat/ReferenceFixture.pm
in spec/fat/Test/C2FIT/fat/StandardAnnotationFixture.pm
in spec/fat/Test/C2FIT/fat/TableParseFixture.pm
in spec/fat/Test/C2FIT/fat/TextToHtmlFixture.pm

Examples