Google's open-source testing framework

Source: Internet
Author: User

Google's open-source testing framework

 

Library address:
Http://code.google.com/p/googletest/

The following content is transferred from:
Http://www.cnblogs.com/coderzh/archive/2009/04/06/1426755.html
Google open-source C ++ unit testing framework Google test series (gtest) (total)
Some time ago, I learned about Google's open-source C ++ unit testing framework Google test (gtest), which is very good. We used a self-implemented unit test framework. During the use process, we found more and more inconveniences, and gtest solved the inconvenience.

In fact, the implementation of gtest itself is not complicated. We can completely imitate gtest and constantly improve our testing framework. But finally, we decided to replace our original testing framework with gtest, the reason is:

1. After constantly improving our testing framework, we will find that it is equivalent to retesting gtest. Although the wheel is great, it is not necessary.
2. Using gtest can save the trouble of maintaining the test framework, so that we can devote more energy to case design.

3. gtest improves the functionality and ease of use, greatly improving the efficiency of writing test cases.
The official website of gtest is:
Http://code.google.com/p/googletest/

From the official user manual, You can get almost everything you want.

Http://code.google.com/p/googletest/wiki/GoogleTestPrimer

Http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide

If you want to check whether gtest is in placeCodeDownload and study. This is the benefit of open source!

The official website already has such a complete document. Why should I write it? On the one hand, you can take notes on your own, but your memory is not as good as that of your pen. You can also check your usage in the future. On the other hand, if you don't want to read a lot of English documents, here I can quickly find gtest-related content.
The following is the directory of the series:

1. Go to Google's open-source C ++ unit testing framework, one of the Google test series (gtest)-First known as gtest

2. Go to Google open-source C ++ unit test framework Google test series (gtest) 2-Assertions

3. Go to Google open-source C ++ unit test framework Google test series (gtest) 3-event mechanism
4. Fun Google open-source C ++ unit test framework Google test series (gtest) 4-parameterization
5. go to Google open-source C ++ unit testing framework Google test series (gtest) 5-death Testing

6. go to Google open-source C ++ unit testing framework-Google test series (gtest)-running parameters
7. Go to Google open-source C ++ unit test framework Google test series (gtest) 7-in-depth analysis of gtest

8. go to Google open-source C ++ unit testing framework Google test series (gtest)-build your own unit testing framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.