Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
should
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
26
Issues
26
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
should
Commits
4f016af4
Commit
4f016af4
authored
Apr 21, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo/{cal,retry}.should: new example
parent
f9bf5b37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
demo/cal.should
demo/cal.should
+11
-0
demo/retry.should
demo/retry.should
+18
-0
No files found.
demo/cal.should
View file @
4f016af4
...
...
@@ -37,3 +37,14 @@ w7: 31
$ 11 months have 30 days or more
w11: 30
# A test with 'f' is expected to be failed
$ The year is 1999, but this is not working now
f: 1999
# A test with 'f' but that nevertheless passes triggers a warning
$ The year is 2001, this should not work now... but yes
f: 2001
demo/retry.should
0 → 100644
View file @
4f016af4
# should.py --retry relaunches the previous failed or warned tests,
# with the same options that at the first call.
python3 src/should.py -v demo/hello.should demo/cal.should
python3 src/should.py --retry
$ 'cal.should' was labeled as 'TODO-but-ok' at both calls
rl: files with.*TODO-but-ok.*demo/cal.should.*Retrying
rl: Retrying .*files with.*TODO-but-ok.*demo/cal.should
$ At the second call, 'cal.should' is tested, but not 'hello.should'
r0l: Retrying .* demo/hello.should
r1l: Retrying .* demo/cal.should
$ The option '-v' was used at both calls
rl: 7 months have 31 days.*Retrying
rl: Retrying.*7 months have 31 days
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment