| 7 | GoogleTest now follows the |
| 8 | [Abseil Live at Head philosophy](https://abseil.io/about/philosophy#upgrade-support). |
| 9 | We recommend |
| 10 | [updating to the latest commit in the `main` branch as often as possible](https://github.com/abseil/abseil-cpp/blob/master/FAQ.md#what-is-live-at-head-and-how-do-i-do-it). |
| 11 | We do publish occasional semantic versions, tagged with |
| 12 | `v${major}.${minor}.${patch}` (e.g. `v1.16.0`). |
| 13 |
| 14 | #### Documentation Updates |
| 15 |
| 16 | Our documentation is now live on GitHub Pages at |
| 17 | https://google.github.io/googletest/. We recommend browsing the documentation on |
| 18 | GitHub Pages rather than directly in the repository. |
| 19 |
| 20 | #### Release 1.16.0 |
| 21 |
| 22 | [Release 1.16.0](https://github.com/google/googletest/releases/tag/v1.16.0) is |
| 23 | now available. |
| 24 |
| 25 | The 1.16.x branch requires at least C++14. |
| 26 |
| 27 | The 1.16.x branch will be the last to support C++14. Future development will |
| 28 | [require at least C++17](https://opensource.google/documentation/policies/cplusplus-support#c_language_standard). |
| 29 |
| 30 | #### Continuous Integration |
| 31 |
| 32 | We use Google's internal systems for continuous integration. |
| 33 |
| 34 | #### Coming Soon |
| 35 |
| 36 | * We are planning to take a dependency on |
| 37 | [Abseil](https://github.com/abseil/abseil-cpp). |
| 38 |
| 39 | ## Welcome to **GoogleTest**, Google's C++ test framework! |
| 40 |
| 41 | This repository is a merger of the formerly separate GoogleTest and GoogleMock |
| 42 | projects. These were so closely related that it makes sense to maintain and |
| 43 | release them together. |
| 44 |
| 45 | ### Getting Started |
| 46 |
| 47 | See the [GoogleTest User's Guide](https://google.github.io/googletest/) for |
| 48 | documentation. We recommend starting with the |
| 49 | [GoogleTest Primer](https://google.github.io/googletest/primer.html). |
| 50 |
| 51 | More information about building GoogleTest can be found at |
| 52 | [googletest/README.md](googletest/README.md). |
| 53 |
| 54 | ## Features |
| 55 |
| 56 | * xUnit test framework: \ |
| 57 | Googletest is based on the [xUnit](https://en.wikipedia.org/wiki/XUnit) |
| 58 | testing framework, a popular architecture for unit testing |
| 59 | * Test discovery: \ |
| 60 | Googletest automatically discovers and runs your tests, eliminating the need |
| 61 | to manually register your tests |
| 62 | * Rich set of assertions: \ |
| 63 | Googletest provides a variety of assertions, such as equality, inequality, |
| 64 | exceptions, and more, making it easy to test your code |
| 65 | * User-defined assertions: \ |
| 66 | You can define your own assertions with Googletest, making it simple to |
| 67 | write tests that are specific to your code |
| 68 | * Death tests: \ |
| 69 | Googletest supports death tests, which verify that your code exits in a |
| 70 | certain way, making it useful for testing error-handling code |
| 71 | * Fatal and non-fatal failures: \ |
| 72 | You can specify whether a test failure should be treated as fatal or |
| 73 | non-fatal with Googletest, allowing tests to continue running even if a |
| 74 | failure occurs |
| 75 | * Value-parameterized tests: \ |
| 76 | Googletest supports value-parameterized tests, which run multiple times with |
| 77 | different input values, making it useful for testing functions that take |
| 78 | different inputs |
| 79 | * Type-parameterized tests: \ |
| 80 | Googletest also supports type-parameterized tests, which run with different |
| 81 | data types, making it useful for testing functions that work with different |
| 82 | data types |
| 83 | * Various options for running tests: \ |
| 84 | Googletest provides many options for running tests including running |
| 85 | individual tests, running tests in a specific order and running tests in |
| 86 | parallel |
| 87 |
| 88 | ## Supported Platforms |
| 89 |
| 90 | GoogleTest follows Google's |
| 91 | [Foundational C++ Support Policy](https://opensource.google/documentation/policies/cplusplus-support). |
| 92 | See |
| 93 | [this table](https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md) |
| 94 | for a list of currently supported versions of compilers, platforms, and build |
| 95 | tools. |
| 96 |
| 97 | ## Who Is Using GoogleTest? |
| 98 |
| 99 | In addition to many internal projects at Google, GoogleTest is also used by the |
| 100 | following notable projects: |
| 101 |
| 102 | * The [Chromium projects](https://www.chromium.org/) (behind the Chrome |
| 103 | browser and Chrome OS). |
| 104 | * The [LLVM](https://llvm.org/) compiler. |
| 105 | * [Protocol Buffers](https://github.com/google/protobuf), Google's data |
| 106 | interchange format. |
| 107 | * The [OpenCV](https://opencv.org/) computer vision library. |
| 108 |
| 109 | ## Related Open Source Projects |
| 110 |
| 111 | [GTest Runner](https://github.com/nholthaus/gtest-runner) is a Qt5 based |
| 112 | automated test-runner and Graphical User Interface with powerful features for |
| 113 | Windows and Linux platforms. |
| 114 |
| 115 | [GoogleTest UI](https://github.com/ospector/gtest-gbar) is a test runner that |
| 116 | runs your test binary, allows you to track its progress via a progress bar, and |
| 117 | displays a list of test failures. Clicking on one shows failure text. GoogleTest |
| 118 | UI is written in C#. |
| 119 |
| 120 | [GTest TAP Listener](https://github.com/kinow/gtest-tap-listener) is an event |
| 121 | listener for GoogleTest that implements the |
| 122 | [TAP protocol](https://en.wikipedia.org/wiki/Test_Anything_Protocol) for test |
| 123 | result output. If your test runner understands TAP, you may find it useful. |
| 124 |
| 125 | [gtest-parallel](https://github.com/google/gtest-parallel) is a test runner that |
| 126 | runs tests from your binary in parallel to provide significant speed-up. |
| 127 |
| 128 | [GoogleTest Adapter](https://marketplace.visualstudio.com/items?itemName=DavidSchuldenfrei.gtest-adapter) |
| 129 | is a VS Code extension allowing to view GoogleTest in a tree view and run/debug |
| 130 | your tests. |
| 131 |
| 132 | [C++ TestMate](https://github.com/matepek/vscode-catch2-test-adapter) is a VS |
| 133 | Code extension allowing to view GoogleTest in a tree view and run/debug your |
| 134 | tests. |
| 135 |
| 136 | [Cornichon](https://pypi.org/project/cornichon/) is a small Gherkin DSL parser |
| 137 | that generates stub code for GoogleTest. |
| 138 |
| 139 | ## Contributing Changes |
| 140 |
| 141 | Please read |
| 142 | [`CONTRIBUTING.md`](https://github.com/google/googletest/blob/main/CONTRIBUTING.md) |
| 143 | for details on how to contribute to this project. |
| 144 |
| 145 | Happy testing! |
| 146 |