Skip to content

Releases: martinmoene/lest

1.33.0

24 Apr 20:55
Compare
Choose a tag to compare

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

1.32.0

26 Jan 13:49
Compare
Choose a tag to compare

This release contains the following changes.

Additions The missing macro lest_SCENARIO() for BDD scenarios with auto-registration has been added, as well as an example that uses it (issue #53). There's also an example that emulates Catch' syntax as far as easily feasible.

Changeslest now handles comparisons that yield a user-defined type that converts to bool (issue #57). The Travis and AppVeyor CI configurations have been expanded to build more variations. lest for C++98 is now also compiled as C++11 and the CMake configuration can handle the case where only C++98 is available. The CMake configuration now includes targets test and install (issue #51, thanks to @arteniioleg) and it provides the new option LEST_EXTRA_WARNINGS.

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

1.31.0

17 Jul 12:04
Compare
Choose a tag to compare

This release adds the lest_FEATURE_RTTI compile-time configuration macro. Further it adds a try it online button to the landing page and expands the list Other test frameworks.

1.30.1

29 Jun 18:38
Compare
Choose a tag to compare

This release fixes compiler-dependent options in CMakeFiles and enables the use of GNUC/Clang option -Wundef. Note: apart from the version number the file lest.hpp is unchanged.

1.30.0

21 Jun 21:02
Compare
Choose a tag to compare

This release adds configuration flag lest_FEATURE_WSTRING to enable removing references to std::wstring if it's not available (thanks to @lucckb). Further it adds buck build support.

1.29.1

27 Apr 15:00
Compare
Choose a tag to compare

This release prevents warnings due to (sign-)conversions (thanks to @Sillamacka, gsl-lite PR 71). Further, it adds a lestTrompeloeil mocking framework integration example.

1.29.0

25 Jan 08:00
Compare
Choose a tag to compare

This release adds the less-than or equal and greater-than or equal operators to approx (issue #38) and removes the macro TEST() which was deprecated since version 1.17.0. Further, the description of main has been improved (thanks to @jjl, issue #41).

1.28.0

31 Dec 10:02
Compare
Choose a tag to compare

This release makes it possible to select CMake targets (issue #40, thanks to @furkanusta), it adds section Building tests and examples to the Readme and mentions compilation via Makefiles in it. Further, this release corrects class action to include a deleted operator=() in lest.hpp and a private operator=() in lest_cpp03.hpp (thanks to PVS-Studio).

1.27.3

30 Dec 15:33
Compare
Choose a tag to compare

This release has been changed to v1.28.0 with class action of lest.hpp also corrected.

1.27.2

11 Nov 08:36
Compare
Choose a tag to compare

This release prevents warning -Wlong-long for uint64_t with non-MSVC compilers using option -std=c++98/c++03 with lest_cpp03.hpp. Apart from the version number, lest.hpp is unchanged.