Test Suites

(Difference between revisions)

Jump to: navigation, search
(Initial µf test suite page.)
(Added related links + link to ufxtract suite)
Line 67: Line 67:
** Generate a test case from any web page using a bookmarklet
** Generate a test case from any web page using a bookmarklet
** Produce a reference implementation
** Produce a reference implementation
 +
 +
==Related==
 +
 +
* [[parsers|Parsers]]
 +
* [[debugging-tools|Debugging Tools]]
 +
* [http://www.ufxtract.com/testsuite/ ufXtract test suite]

Revision as of 06:55, 28 May 2009


So, you want to parse microformats in your app? Awesome. There are parsers in many languages.

A critical effort to assist in interoperability and completeness of microformat parsing is the Test Suite. This page documents the effort to produce test cases for each microformat and parsing pattern, so that you can verify the operations of your parser.

'NB: This page is new. There is a limited test suite available already for hCard, hCalendar, hReview and hAtom. It is somewhat outdated and unmaintained, but should give you a starting point. This effort hopes to produce something far more robust and extensive, as well as setting a precedent and framework for future microformats and test suites.

This page will be expanded.

Contents

Get the Tests

hCard
 ???
hCalendar
 ???
hAtom
 ???
hReview
 ???
Geo
 ???

Goals of Test Suite Project

We need to support specifications with better tests. There's no other way for parser writers to verify the correctness and completeness of their code without them. Microformats are getting adopted by big players, and implementations are having bigger and bigger impact. It's critical that implementers don't reinvent the testing wheel for each new project.

Test Structure

Each test takes the form of:

JSON is the output format because:

There is to be one test suite per format. In some cases, such as geo and adr with hCard, the address and geo portions will be included in the geo and adr test suites and hCard parsers will be expected to include cases from all three suites.

Each suite is organized as follows

Establishment Tasks

Related

Test Suites was last modified: Wednesday, December 31st, 1969

Views