Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-12-14 07:21 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (384 votes). Check out past polls.