retry.should 950 Bytes
Newer Older
1 2 3
# should.py --retry relaunches the previous failed tests.
# should.py --retry-warned relaunches the previous failed or warned tests.
# These relaunches are with the same options that at the first call.
4

5 6 7 8
!EXIT_CODE: 1

./should -v demo/hello.should demo/cal.should demo/tests/fail.should
./should --retry-warned
9

Mathieu Giraud's avatar
Mathieu Giraud committed
10 11 12
$ 'cal.should' was labeled as 'TODO' at both calls
rl: files with.*TODO.*demo/cal.should.*Retrying
rl: Retrying .*files with.*TODO.*demo/cal.should
13

14
$ At the second call (--retry-warned), 'fail.should' and 'cal.should' are tested, but not 'hello.should'
15 16
r0l: Retrying .* demo/hello.should
r1l: Retrying .* demo/cal.should
17
r1l: Retrying .* demo/tests/fail.should
18 19 20 21 22

$ The option '-v' was used at both calls
rl: 7 months have 31 days.*Retrying
rl: Retrying.*7 months have 31 days

23 24 25 26 27 28
./should --retry

$ Now only 'fail.should' is tested
r0l: Retrying .* demo/hello.should
r0l: Retrying .* demo/cal.should
r1l: Retrying .* demo/tests/fail.should