Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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 rifling through the Monastery: (2)
As of 2018-02-26 04:05 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (316 votes). Check out past polls.