Aside from the fact that many languages are already using the TAP protocol and 
we'd create something they *don't* use, what happens when my 4,000 test lines 
all of a sudden become 16,000 test lines because the format has been changed?
Do you pay for CPU time on a per-newline basis? :)

Good point, though. If we put YAML in comments then we remain compatible with all past parsers and emitters.

However, most perl tests don't care about TAP, they use Test::More and Test::Harness and happen to exchange data via TAP. If Test::More and Test::Harness decied to use "YAP" (YAML Anything Protocol? :), then most applications would probably never notice.

However, emitting a raw YAML stream means that the application can never emit any other output, otherwise the YAML will become invalid. If we use comments and --- <yaml> ..., then non-TAP output should still be acceptable.

OK, you've convinced me. All-YAML TAP isn't a good idea. I might play with it a little more though, just for fun.

Regards,
Jonathan Rockway

Reply via email to