On 29 Nov 2007, at 15:04, Adrian Howard wrote:
On 29 Nov 2007, at 14:56, Andy Armstrong wrote:

I'd like

# Run all tests
$ prove --state=save -rb t/*.t

# Re-run failures from above
$ prove --state=fail -rbv

# Re-run failures and remember failures
$ prove --state=save,fail -rbv

Using the third form repeatedly would run only the test programs that failed previously - so as you fixed things the list of tests to run would shrink.

We like?

Kinda :-)

One I'd like even more would be to run tests in order of most- recently-failed. It's something I've hacked together several times at various companies with T::H::Straps.


$ prove --state=fail,all,save

?

(option order matters, 'fail' adds the failed tests to the run queue, 'all' adds everything, list is de-duped so the failures run first, saved for next time)

--
Andy Armstrong, Hexten




Reply via email to