...
 
Commits (12)
`should` adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## 2.0.0 (2019-04-01)
- (API change) Commands and tests can be interleaved, each test flushing the command outputs #36
- (API change) Passing 'f' tests now trigger a fail (TODO-but-ok) #20
- (new) 'a' tests, tests "allowed to fail", unless --fail-a #27
- (new) 'i' tests, ignoring case change
- (new) options to select some tests --no-f, --no-a, --only-f, --only-a #28
- (new) --timeout option #4
- More portable colors, works both on light and dark background #35
- Bugs closed: timeout on large outputs #19, --var and --mod overriding from command line #21 #43
- Code refactors #14 #36
- Updated and improved documentation
## 1.0.0 (2018-07-06)
- Initial release, refactor of an earlier shell script
......
......@@ -19,7 +19,7 @@ and is intended to work on any command-line application
### Download
The archive [should-1.0.0.tar.gz](https://gitlab.inria.fr/vidjil/should/-/archive/1.0.0/should-1.0.0.tar.gz)
The archive [should-2.0.0.tar.gz](https://gitlab.inria.fr/vidjil/should/-/archive/2.0.0/should-2.0.0.tar.gz)
also includes this documentation with demo files.
In your projetcts, you only need the [should.py](https://gitlab.inria.fr/vidjil/should/raw/master/src/should.py) file.
......
!OPTIONS: --mod w
# Modifiers given through the !OPTIONS line apply to every test.
LC_ALL=C cal 2001
# Here tests with `w` count all occurrences, even when they are on the same line.
LC_ALL=C cal 2001
$ 7 months have 31 days
w7: 31
# Uppercase modifiers cancel previous modifiers
$ 5 lines have a '31' day
wW5: 31
# Here tests with `w` count all occurrences, even when they are on the same line.
# Modifiers given through the command line or through !OPTIONS apply to every test.
!OPTIONS: --mod w
LC_ALL=C cal 2001
$ 7 months have 31 days
7: 31
......@@ -14,9 +23,5 @@ $ 7 months have 31 days
$ 11 months have 30 days or more
11: 30
# Uppercase modifiers cancel previous modifiersrs.
$ 5 lines have a '31' day
W5: 31
$ 7 months have a '31' day (W is here overriden by --mod w)
W7: 31
......@@ -6,3 +6,11 @@ r:Summary.*failed:1
$ Report failing test
r:Summary.*TODO-but-ok:1
./should demo/cal.should
!EXIT_CODE: 0
$ With --fail-a, fails
./should --fail-a demo/cal.should
!EXIT_CODE: 1
This diff is collapsed.