All About xUnit
gTest
gTest is a simple, free, portable testing framework for C++.
In the mid-90s Kent Beck and Erich Gamma produced JUnit to
make it easy to write and run tests. Since then, similar frameworks have sprung up for almost
all languages. These are called xUnit frameworks, where x is the name of the language.You're about to learn about an exception to this statement: gTest (shorthand for GoogleTest).
Google recently released this framework, which has some advantages over
popular C++ testing frameworks like cppUnit. All our Greatest Hits exercises
use it.
In the pages ahead, you’ll learn enough about gTest’s fundamentals to write
and execute hundreds of tests.
(Reading...)
Formatting Hints:
To format... | use this markup: |
---|---|
source code | {source:lang=java|lineNumbers=false}...{source} (Supported languages: java, cpp, csharp, c, python.) |
bold text | __some text__ |
italicized text | ~~some text~~ |
underlined text | @@some text@@ |
a method or class name | ``myMethod(...)`` |