Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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)

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]
[marto]: think targeted ads
[marto]: "your house is so big, consider product XYZ", "You clean a lot, consider product ABC"
Discipulus your house is so small, accept dollars from nigeria
[marto]: Discipulus, or space saving products, that sort of thing

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2017-07-26 12:05 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (390 votes). Check out past polls.