Subject: | Mechanism for filtering out passing tests, dists and versions |
It would make the CPAN Testers interface much more useful to me if I
could hide everything that passes.
But I'm assuming that you are using something like ttree, so I'd like to
propose a mechanism for this that is VERY simple to implement and
requires only template changes, no code changes.
Firstly, flag the lines with a class based on pass/fail.
-------------------------------------------------------
<li><a
href="http://nntp.x.perl.org/group/perl.cpan.testers/348281">348281</a>
<span class="PASS"> PASS
</span>
5.8.8 on Linux 2.6.15-1-686 (i486-linux-gnu-thread-multi)</li>
-------------------------------------------------------
<li class="testpass"><a
...
-------------------------------------------------------
or "failli" etc...
Additionally (although slightly more complex) change the entire dist to
a differing (identical-looking) class if all pass...
-------------------------------------------------------
<div class="headers"><b>1.118
(<a id="PPI-1.118">6<span class="FAIL"> FAILs, </span>10<span
class="PASS"> PASSes</span></a>)</b>
<ul>
-------------------------------------------------------
<div class="headerspass"><b>1.118
...
-------------------------------------------------------
With those additions, we can now use a small chunk of JavaScript
recycled from the JSAN Display.js module to hide either just the dists
that all pass, or all the tests that pass, in JavaScript on the client
side, without needing to talk to the server again.
http://openjsan.org/doc/a/ad/adamk/Display/0.06/lib/Display.html
And that would pretty much cover the full implementation.
I suck with patches, but if I could get access to the repository, I'd be
happy to implement this directly.