Skip to content

1.33.0

Compare
Choose a tag to compare
@martinmoene martinmoene released this 24 Apr 20:55
· 62 commits to master since this release

This release contains the following changes.

Additions It is now possible to report the passing or failing section propositions and assertions. To keep output backwards compatible (for now), you need to use option -v, --verbose to also report the sections. The section-reporting code is inspired on PR #36 (thanks to Damon Domjan @Espressosaurus).

Breaking change To pass a lambda capture list in test cases organized as an array of lambdas, you now need to use macro CASE_ON(proposition, ...) This avoids non-standard use of variadic macros (ISO C++11 requires at least one argument for the "..." in a variadic macro). Further several hidden tests were added to report lest'sconfiguration.

Changes The exit value of a lest program is limited to 255 (issue #60). Characters such as tab and newline are now reported as \t and \n. Pointers are reported as 'nullptr' ('NULL') or hexadecimal number. Avoidance and suppression of compiler warnings has been improved (issue #48, #59).

Removals Support for VC6 (Visual Studio 6) has been removed from lest_cpp03.

Usage: test [options] [test-spec ...]

Options:

  • -h, --help, this help message
  • -a, --abort, abort at first failure
  • -c, --count, count selected tests
  • -g, --list-tags, list tags of selected tests
  • -l, --list-tests, list selected tests
  • -p, --pass, also report passing tests
  • -t, --time, list duration of selected tests
  • -v, --verbose, also report passing or failing sections
  • --order=declared, use source code test order (default)
  • --order=lexical, use lexical sort test order
  • --order=random, use random test order
  • --random-seed=n, use n for random generator seed
  • --random-seed=time, use time for random generator seed
  • --repeat=n, repeat selected tests n times (-1: indefinite)
  • --version, report lest version and compiler used
  • --, end options

Test specification:

  • "*": all tests, unless excluded
  • empty: all tests, unless tagged [hide] or [.optional-name]
  • "text": select tests that contain text (case insensitive).
  • "!text": omit tests that contain text (case insensitive).