--- Mark Fowler <[EMAIL PROTECTED]> wrote:

> I would like to press a key shortcut in my text editor and have it  
> run the test I'm currently editing.  If there are any failures, I'd  
> like to be able to click on them and it go to the line that the  
> failing test was on.  Since my current editor is TextMate this  
> involves creating a script that runs my test and outputs HTML.

You can't quite do it yet unless you want to risk trying to parse the
relatively free-form diagnostics.  The problem there is that STDERR and
STDOUT are not always in synch and it can be difficult to know what
diagnostics apply to what tests.  Hell, even if they *are* in synch,
spurious diagnostics can mess up this heuristic approach.

What you need is the metadata which is currently not part of TAP. 
We've worked on this for the next version of TAP (in fact, you can
inspect the code and see that we allow already allow embedded YAML
blocks in TAP for this) and that will have parseable metadata for you. 
However, there are a few obstacles:

* Schwern needs to update Test::Builder (or get a patch) which provides
the metadata in YAML format if the test harness can recognize it.
* We need to get TH3 out the door first and we've gotten bogged down by
some side issues.

Once TH3 is out the door and we nail down some issues with
parallelization and extendability, we're probably going to return to
the TAP upgrade work.

That's probably not the answer you wanted, but that's the direction
we're heading.

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/

Reply via email to