Changes between Initial Version and Version 1 of Projects/GSoC/TestingReview/Google_Test_and_Google_Mock


Ignore:
Timestamp:
07/06/12 23:45:29 (12 years ago)
Author:
Xiaochen Pan
Comment:

Created page with "Google Tests is unit testing framework conforming to xUnit architecture. Google Mock is a library that can be used to provide mocking functionality to other C++ testing framework..."

Legend:

Unmodified
Added
Removed
Modified
  • Projects/GSoC/TestingReview/Google_Test_and_Google_Mock

    v1 v1  
     1= TestingReview/Google Test and Google Mock =
     2
     3
     4Google Tests is unit testing framework conforming to xUnit architecture. Google Mock is a library that can be used to provide mocking functionality to other C++ testing frameworks as well. They can be used in combination for host based testing with powerful functionalities they provide. By defining a strict test format, Google Tests supports automatic test discovery, and distinguishes fatal and non-fatal failures, which is not provided by most test frameworks.It also provides a rich set of assertions, and even user-defined assertions for more readable tests results display. It has provided three flexible ways for user to define custom assertions, using existing boolean functions, use AssertionResult object, and using Predicate-formatter to further customize error messages. It also provide a mechanism to verify that unit tests fails or exit with give exit code or error message in order to ensure that assertions fails as expected. In addition, it supports parameterized tests, which can be very convenient in tests automation. Test error propagation options have made it possible to write complicated unit tests without confusion. It also supports various options for running the tests,for example, tests repetition, independent tests running, tests shuffling. It supports XML test report generation. Google Mock provides a flexible mocking interface to C++ frameworks.