v1.11.0
Release Notes
GoogleTest will not accept patches of new features to v1.11.0.
We recommend building GoogleTest from the latest commit instead.
Exceptional critical bug fixes may be considered.
Documentation
- Contents significantly updated
- Files moved into docs (4892835)
- Now using GitHub pages (1a5a78b, d9c309f, c3fc92f)
- Added Bazel quickstart (32ad3c8)
- Added CMake quickstart (d4e3b8c)
Mocking
MOCK_METHODnow handles noexcept correctly (#2498)MOCK_METHODnow supports ref-qualifiers (d89b363)MOCK_METHODnow supports returning function pointers (1f9edcd)DoAllnow accepts move-only arguments (48ec640)MockFunctioncan now be used for mockingstd::function(#2350)MockFunctionis now templated for use with other function classes, besidesstd::function(662fe38)ACTIONmacros now support more than 10 arguments (63713e1)
Matchers
- New matchers
- New actions
ReturnRoundRobin(37f3227)
- Added
Matcher<std::string_view>specialization that internally stores astringinstead ofstring_view(6f5fd0d) - String matchers now accept
string_viewinput (13a433a) DoubleNearPredFormatmatcher now fails on impractically small epsilons (b5687db)Trulymatcher now explains failures (0c400f6)- Matchers can now be implemented without extending
MatcherInterface(c13c27a) - Added output messages for skipped tests (#2517, #2767)
Behavior
- New flags
- Failures in
SetUpTestSuiteandTearDownTestSuitenow cause tests to fail rather than log (9ed99c6) - Uninstantiated
TEST_PandTYPED_TEST_Pnow fail unless allowlisted usingGTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(d442089, a13a062, 0b024bd, 3e79d36, ec94d9f)
Output
- Added specialized printing for
std::any,std::optional, andstd::variant(#2742) - Added recursive printing for
std::unique_ptrandstd::shared_ptr(6b2e749) - Printing incomplete types is now supported (f8304d7)
- Start timestamps in XML/JSON output now use millisecond precision (af1e75c)
- Added more structured information about test suite to XML/JSON output on environment failures (ac1d60c)
Build & Test
- CMake minimum increased to 2.8.12 (#3094)
- GoogleTest is now using Kokoro CI instead of Travis and AppVeyor