Skip to content

1.18.0

Compare
Choose a tag to compare
@martinmoene martinmoene released this 19 Oct 13:14
· 382 commits to master since this release

This release adds options to list tags and to order tests (see below), it adds macro lest_EXPECT_NO_THROW() to assert that an expression doesn't throw (see section Assertion macros) and it adds feature lest_FEATURE_COLOURISE to emphasise success and failure with color (see section Other macros).

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
  • --order=declared, use source code test order
  • --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
  • --, end options

Test specification:

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