commit | 1a8ecf1813d022cc7914e04564b92decff6161fc | [log] [tgz] |
---|---|---|
author | Abseil Team <absl-team@google.com> | Sat Mar 20 01:24:27 2021 -0400 |
committer | Derek Mauro <dmauro@google.com> | Mon Mar 22 15:18:50 2021 -0400 |
tree | 3ff9941b412d6470e3a37ffc102bd166a4100171 | |
parent | 3ff1e8b98a3d1d3abc24a5bacb7651c9b32faedd [diff] |
Googletest export Print std::u8string, std::u16string, and std::u32string as string literals Previously, these types were printed as "{ U+123, U+456, U+789 }". However, printed output in that form is difficult to compare against any literals that might be defined in code. Instead, just treat these types like std::string and std::wstring, escaping non-ASCII characters with a hexadecimal escape sequence. The tests have also been updated to cover the new functionality: as a bonus, the tests now also pass with the MSVC toolchain. Internally, the code has been reorganized to primarily operate in terms of char32_t, under the assumption that char32_t will always be at least as big as wchar_t. While that assumption is currently true, perhaps it won't be in the future... PiperOrigin-RevId: 364033132
GoogleTest now follows the Abseil Live at Head philosophy. We recommend using the latest commit in the master
branch in your projects.
Our documentation is now live on GitHub Pages at https://google.github.io/googletest/. We recommend browsing the documentation on GitHub Pages rather than directly in the repository.
Release 1.10.x is now available.
This repository is a merger of the formerly separate GoogleTest and GoogleMock projects. These were so closely related that it makes sense to maintain and release them together.
See the GoogleTest User's Guide for documentation. We recommend starting with the GoogleTest Primer.
More information about building GoogleTest can be found at googletest/README.md.
GoogleTest requires a codebase and compiler compliant with the C++11 standard or newer.
The GoogleTest code is officially supported on the following platforms. Operating systems or tools not listed below are community-supported. For community-supported platforms, patches that do not complicate the code may be considered.
If you notice any problems on your platform, please file an issue on the GoogleTest GitHub Issue Tracker. Pull requests containing fixes are welcome!
macOS users: Xcode 9.3+ provides clang 5.0+.
Note: Bazel is the build system used by the team internally and in tests. CMake is supported on a best-effort basis and by the community.
In addition to many internal projects at Google, GoogleTest is also used by the following notable projects:
GTest Runner is a Qt5 based automated test-runner and Graphical User Interface with powerful features for Windows and Linux platforms.
GoogleTest UI is a test runner that runs your test binary, allows you to track its progress via a progress bar, and displays a list of test failures. Clicking on one shows failure text. Google Test UI is written in C#.
GTest TAP Listener is an event listener for GoogleTest that implements the TAP protocol for test result output. If your test runner understands TAP, you may find it useful.
gtest-parallel is a test runner that runs tests from your binary in parallel to provide significant speed-up.
GoogleTest Adapter is a VS Code extension allowing to view GoogleTest in a tree view, and run/debug your tests.
C++ TestMate is a VS Code extension allowing to view GoogleTest in a tree view, and run/debug your tests.
Cornichon is a small Gherkin DSL parser that generates stub code for GoogleTest.
Please read CONTRIBUTING.md
for details on how to contribute to this project.
Happy testing!