其他分享
首页 > 其他分享> > Testing - Chapter 11-14 in SWE at Google (Edition 2)

Testing - Chapter 11-14 in SWE at Google (Edition 2)

作者:互联网

Testing Overview

Why to test?

Chapter 11 gives some reasons:

What is a test?

Story: GWS (Google web server)

Releases were becoming buggier, and it was taking longer and longer to push them out. Team members had little confidence when making changes to the service, and often found out something was wrong only when features stopped working in production.
To address these problems, the tech lead (TL) of GWS decided to institute a policy of engineer-driven, automated testing. Within a year of instituting this policy, the number of emergency pushes dropped by half.

Design a Test Suite

Image followed is the difference of small, medium and large size of a test.
image
Small tests must run in a single process. Cannot run a third-party program such like a database. Also, they are not allowed to sleep, perform I/O operations, or make any blocking calls. They are not allowed to access the network or disk (not strictly denied here).
The only remaining restriction is that medium tests aren’t allowed to make network calls to any system other than localhost. As we all know that the amount of unit level test is 80%, integration test is 15% and end-to-end test is 5%.

Testing at Google scale

Fast testing

标签:Chapter,11,tests,Google,testing,code,test,suite,your
来源: https://www.cnblogs.com/Sanhao99/p/16345716.html