On 08/26/2012 09:59 PM, Andreas Kupries wrote:
>> Another example is the tcltest (Tcl core) package: you find the exit
>> code question in the usenet already 6 years ago, but nothing seems to
>> happened since then: just slowly changing workarounds.
>
> Has it only been discussed on usenet ?
>
> Has anybody ever found the issue important enough to actually file a
> bug report on it ? Plus maybe the patches they have?
>
> (On my quick search right now it seems not)
<semi-disorganized brain dump follows>
The SF Tracker has 16 open feature requests for the tcltest package.
Most relevant to this discussion are
http://sf.net/tracker/?func=detail&aid=623787&group_id=10894&atid=360894
http://sf.net/tracker/?func=detail&aid=2794560&group_id=10894&atid=360894
I would be quite pleased for someone interested to open a fossil branch
to work on some/all of these, or other improvements to tcltest.
The other constraint to keep in mind for tcltest enhancements is the
existing body of test suites that you'd want to avoid breaking as much
as reasonably possible. To avoid that constraint (and to shuffle off
the burden of "tcltest 1" compatibility still woven through the existing
package), someone might also consider going to work directly on either
tcltest 3, or a successor package of testing facilities.
For quite a while now, tcltest edits are mostly small bug fixes or
small accommodations to the changing facilities of Tcl. Substantial
new features haven't been done. This is due to a number of things.
A large factor is that the maintainer, me, has formed an impression that
tcltest is largely "done". As in, it's good enough, and the proposed
improvements are all tinkerings around the edge that might be nice, but
aren't a big deal. So working on them never rises above all the other
pending Tcl improvements which seem more important at the time. Only
occasionally does someone dissatisfied interact with me enough like this
to bring a deficiency into focus.
A contributing factor is that tcltest started existence as a set of
utility scripts forming a testing application, rather than a testing
package, and it's never really completed the transformation. It still
contains, and even prefers, facilities that reach out and read $::argv
for itself and write directly to stdout and stderr for its own
reporting, rather than specify interfaces that would allow a client
application to get at these things and use them as it chooses.
I have the sense that the world of testing has grown up a firmer set of
conventions since the days when tcltest built up its feature set. Even
a question posed earlier "Is there a better way to do unit tests for
module compilation?" suggests that there's an expected set of vocabulary
and functionality in the testing world that was not as well established
in the days of tcltest's origin. A renovation or reboot schooled in
modern expectations might be very useful in capturing and serving this
set of expectations. I am not immersed in the testing world nearly
enough to be the best person to attempt that.