Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Run tests with "auto-prove"

by jeffa (Bishop)
on Feb 29, 2012 at 20:26 UTC ( #957022=note: print w/ replies, xml ) Need Help??

in reply to Run tests with "auto-prove"

"The idea of it is that if you're working in "my-code/lib/Foo/Bar/", you don't want to chdir all the way back to "my-code/" before you run your test suite."

Why? Just run two terminals -- one to run tests and run to edit. There are so many better ways to solve the problem of running your test suite while you "jump around" inside the source tree -- pushd and popd come to mind as well. I am curious as to how much time it took you to write this and contrast with how much time this actually saves you.


(the triplet paradiddle with high-hat)

Comment on Re: Run tests with "auto-prove"
Select or Download Code
Replies are listed 'Best First'.
Re^2: Run tests with "auto-prove"
by tobyink (Abbot) on Feb 29, 2012 at 23:07 UTC

    Who says I'm even running one terminal? I often run auto-prove straight from my text editor. Many text editors and IDEs allow you to launch external commands like compilers, syntax checkers, etc.

      alias autoprove="pushd /path/to/dist; prove -Ilib t; popd"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://957022]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-11-26 03:46 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls