Friday, April 3, 2009

What's New in Google Test 1.3.0

A couple of weeks ago we released version 1.3.0 of Google C++ Testing Framework (or Google Test for short). So what's new compared with the previous version, 1.2.1?

This is a major feature release. The most noteworthy things we added are:
  • We have brought death tests to more operating systems. In addition to Linux, you can write death tests on Windows, Cygwin, and Mac OS X now. In case you don't know yet, a death test makes sure that your code does crash under certain conditions. Odd this may sound, it is useful for verifying that you have the right assertions in your production code to catch anomalies.
  • If you cannot switch from your current testing framework to Google Test yet, we now allow you to use Google Test's assertions (including death tests) with your existing framework. You can then try out Google Test in small steps and decide whether you want to switch later.
  • Google Test allows you to mark a test function as "disabled." Disabled tests will be compiled but skipped at run time (handy when you want to fix the bug later). Now, you can use the --gtest_also_run_disabled_tests command-line flag to run such tests without editing and recompiling the source code.
  • The --help flag is added for printing the usage of common Google Test command-line flags, saving you a trip to the manual.
  • You can read and change the state of Google Test's flags in tests now. This gives you more control on the behavior of Google Test.
  • To make it easy to use Google Test for a quick job, we provide a script to pack all Google Test source code into two files: gtest.h and gtest-all.cc. Just copy the two files to any machine you need to run tests on, and start hacking!
Check it out. We'd like to hear what you think of it.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.