Skip to content

Releases: martinmoene/lest

1.23.0

31 May 08:44
Compare
Choose a tag to compare

This release improves on the documentation, enables building the tests and examples via CMake and adds lest to biicode.

1.22.0

05 Jan 07:09
Compare
Choose a tag to compare

This release adds decomposition for std::pair and std::tuple (thanks to @PureAbstract / Catch).

1.21.0

28 Dec 11:00
Compare
Choose a tag to compare

This release adds auto registration for test cases to lest.hpp (lest_FEATURE_AUTO_REGISTER).

Using auto registration reduces compilation time compared to the table approach.

See examples 12-module-auto-reg-[123].cpp.

1.20.0

26 Dec 13:54
Compare
Choose a tag to compare

This release adds macro lest_MODULE() to support writing your tests across multiple files. See examples 11-module-.cpp for lest and 12-module-cpp03-.cpp for lest_cpp03.

1.19.2

26 Dec 10:44
Compare
Choose a tag to compare

This release fixes a missing inline.

1.19.1

24 Dec 16:55
Compare
Choose a tag to compare

This release fixes type uint64_t (current_ticks()) on non-Windows platforms. Further it improves documentation.

1.19.0

24 Oct 20:06
Compare
Choose a tag to compare

This release adds function-level fixtures and options --repeat and --version. Further unrecognised types are now reported with their type name instead of {?}. Examples have been renamed.

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
  • --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 [.]
  • "text": select tests that contain text (case insensitive).
  • "!text": omit tests that contain text (case insensitive).

1.18.0

19 Oct 13:14
Compare
Choose a tag to compare

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).

1.17.1

01 Oct 18:49
Compare
Choose a tag to compare

This release fixes EXPECT_THROWS() and EXPECT_THROWS_AS() to accept a void expression.

1.17.0

29 Sep 20:32
Compare
Choose a tag to compare

This release introduces macro CASE() to start a test case [1].

Further this release adds the command line options as already available in lest to lest_cpp03. Also compile-time feature selection was added to lest_cpp03 to enable regular expression test selection and to omit option --time.

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

Options:

  • -h, --help, this help message
  • -a, --abort, abort at first failure
  • -c, --count, count selected tests
  • -l, --list, list selected tests
  • -p, --pass, also report passing tests
  • -t, --time, list duration of selected tests
  • --, end options

Test specification:

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

[1] In Making Steaks from Sacred Cows, at ca. 0:58, Kevlin Henney denotes the significance of the word case, as: A test case corresponds to a single case, it has a single reason to change.