[TIP] TAP vs subunit
remko at el-tramo.be
Mon May 16 02:45:52 PDT 2016
> TAP is/was a very good fit for Perl, but its really awkward for most
> everything else - and AFAICT it hasn't really changed to fit the more
> object orientated approach possible in other languages.
Could you elaborate why OO doesn't fit in TAP?
> Consider e.g.
> which doesn't provide semantic information (that the error is an
> unexpected success) to TAP consumers.
Isn't this a problem with 'unittest' not providing any more information,
rather than a problem with TAP or pycotap? Also, which semantic
information would you expect? There's nothing to report in this case afaict?
> I'd use junitxml (https://pypi.python.org/pypi/junitxml) which is both
One downside (apart from XML not being as trivial to generate as TAP) is
that it isn't streamable, so you can't get live updates. Might not be
necessary for you.
TAP certainly isn't perfect, but it is a pragmatic solution that does the trick
in my case.
More information about the testing-in-python