[tap-l] TAP tests
Michael G Schwern
schwern at pobox.com
Tue Mar 20 00:44:43 GMT 2007
By which I mean acceptance tests to ensure your TAP consumer is consuming
properly. We don't have anything official, it sure would be nice if we did.
So I'm throwing this out as a project for someone (where someone does not
equal "Andy Armstrong" because he's doing too much already) to do.
A good place to start is the "sample-tests" directory in the TAP::Parser
distribution. The expected results are in t/020-regression.t. I'd suggest
the tests be encoded in YAMLish with the TAP and expected results in each
document. For example...
---
name: simple
TAP: |
1..1
ok 1
results:
overall:
has_plan: 1
planned_tests: 1
passed: 1
version: 12
skipped: []
todo: []
lines:
-
type: plan
planned_tests: 1
-
type: test
result: ok
actual_result: ok
directive: ''
description: ''
...
These should be posted on the Wiki and probably eventually shipped with the
TAP module.
More information about the tap-l
mailing list