[TIP] TAP vs subunit
Remko Tronçon
remko at el-tramo.be
Mon May 16 02:45:52 PDT 2016
Hi Robert,
> 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.
> https://github.com/remko/pycotap/blob/master/pycotap/__init__.py#L132
> 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.
thanks!
Remko
More information about the testing-in-python
mailing list